Updates puma to 5.6.2 (was 4.3.11)

Also use pumactl to "hot" restart
This commit is contained in:
Henne Vogelsang 2022-03-03 17:19:42 +01:00
parent 95964267a0
commit dffc5c1240
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
4 changed files with 12 additions and 19 deletions

View file

@ -19,7 +19,7 @@ set :branch, OSEM_DEPLOY_BRANCH
# Shared dirs and files will be symlinked into the app-folder by the 'deploy:link_shared_paths' step.
# Some plugins already add folders to shared_dirs like `mina/rails` add `public/assets`, `vendor/bundle` and many more
# run `mina -d` to see all folders and files already included in `shared_dirs` and `shared_files`
set :shared_dirs, fetch(:shared_dirs, []).push('public/system', '.bundle')
set :shared_dirs, fetch(:shared_dirs, []).push('public/system', '.bundle', 'tmp/pids')
set :shared_files, fetch(:shared_files, []).push('.env.production')
desc "Deploys the current version to the server."
@ -36,8 +36,7 @@ task :deploy do
on :launch do
in_path(fetch(:current_path)) do
command %{mkdir -p tmp/}
command %{touch tmp/restart.txt}
command %{bundle exec pumactl restart -e production}
command %{sudo systemctl restart osem-dj}
end
end