how do you handle server reboots.? right now i have to go in each rails project and do 'cap production puma:start'. great tutorial btw :)
==EDITED==
found solution. puma comes with upstart configs (ubuntu) https://github.com/puma/puma/tree/master/tools/jungle/upstart
i needed to add this to your script in the deploy-task
desc 'Set config/puma.rb-symlink for upstart' task :pumaconfigln do on roles(:app) do execute "ln -s #{sharedpath}/puma.rb #{fetch(:deployto)}/current/config/puma.rb" end end
after :finishing, :pumaconfigln
how do you handle server reboots.?
right now i have to go in each rails project and do 'cap production puma:start'. great tutorial btw :)
==EDITED==
found solution. puma comes with upstart configs (ubuntu)
https://github.com/puma/puma/tree/master/tools/jungle/upstart
i needed to add this to your script in the deploy-task
desc 'Set config/puma.rb-symlink for upstart'
task :pumaconfigln do
on roles(:app) do
execute "ln -s #{sharedpath}/puma.rb #{fetch(:deployto)}/current/config/puma.rb"
end
end
after :finishing, :pumaconfigln