lib/capistrano/templates/run-puma.erb in capistrano3-puma-1.1.0 vs lib/capistrano/templates/run-puma.erb in capistrano3-puma-1.2.0

- old
+ new

@@ -1,9 +1,9 @@ #!/bin/bash app=$1; cd $app || exit 1 if [ -e Gemfile ]; then - exec sh -c "exec bundle exec puma -C ../../shared/puma.rb --daemon" + exec <%= fetch(:puma_user) ? "sudo -u #{puma_user(@role)}" : '' %> sh -c "exec bundle exec puma -C <%= fetch(:puma_conf) %> --daemon" else - exec sh -c "exec puma -C ../../shared/puma.rb --daemon" + exec <%= fetch(:puma_user) ? "sudo -u #{puma_user(@role)}" : '' %> sh -c "exec puma -C <%= fetch(:puma_conf) %> --daemon" fi