Fix error
This commit is contained in:
parent
1bf6996576
commit
6beeb86f40
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue