lib/capistrano/templates/run-puma.erb in capistrano3-puma-0.0.7 vs lib/capistrano/templates/run-puma.erb in capistrano3-puma-0.1.0
- old
+ new
@@ -1,2 +1,9 @@
#!/bin/bash
-cd $1 && exec bundle exec puma -C config/puma.rb
+app=$1;
+cd $app || exit 1
+
+if [ -e Gemfile ]; then
+ exec sh -c "exec bundle exec puma -C ../../shared/config/puma.rb"
+else
+ exec sh -c "exec puma -C ../../shared/config/puma.rb"
+fi
\ No newline at end of file