Use puma instead of unicorn

Puma is the server we use in the development environment, so this way we
don't need to maintain two servers. Furthermore, puma seems to offer a
few advantages over unicorn (like multithreading) and no disadvantages.
This commit is contained in:
Javi Martín
2019-10-10 22:08:55 +02:00
parent 94a7e13dce
commit b36e659f4e
5 changed files with 13 additions and 23 deletions

View File

@@ -1,11 +0,0 @@
namespace :deploy do
desc "Restart Unicorn"
task :restart do
on roles(:app) do
execute "kill -QUIT `cat #{deploy_to}/pids/unicorn.pid`; true"
execute "kill -QUIT `cat #{shared_path}/pids/unicorn.pid`; true"
execute "kill -QUIT `cat #{shared_path}/tmp/pids/unicorn.pid`; true"
execute "cd #{release_path} && bundle exec unicorn -c config/unicorn.rb -E production -D"
end
end
end