1
0
Fork 0

Fix error

This commit is contained in:
Alex Kotov 2018-12-10 06:52:10 +05:00
parent 1bf6996576
commit 6beeb86f40
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@ namespace :puma do
within release_path do
statefile = File.join shared_path, 'tmp', 'pids', 'puma.state'
execute :bundle, :exec, :pumactl, '--state', statefile, :stop
rescue SSHKit::Command::Failed
nil
end
end
end

View File

@ -7,6 +7,8 @@ namespace :sidekiq do
within release_path do
pidfile = File.join shared_path, 'tmp', 'pids', 'sidekiq.pid'
execute :bundle, :exec, :sidekiqctl, :stop, pidfile
rescue SSHKit::Command::Failed
nil
end
end
end