From fba2b266ca3492c5ce030bffeb8775c70de6c713 Mon Sep 17 00:00:00 2001 From: maruware Date: Wed, 8 Apr 2015 12:29:58 +0900 Subject: [PATCH] Add nohup when executing start_sidekiq, for a problem with pty. --- lib/capistrano/tasks/sidekiq.cap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/sidekiq.cap b/lib/capistrano/tasks/sidekiq.cap index bf5147f..daaac1e 100644 --- a/lib/capistrano/tasks/sidekiq.cap +++ b/lib/capistrano/tasks/sidekiq.cap @@ -116,7 +116,7 @@ namespace :sidekiq do if fetch(:start_sidekiq_in_background, fetch(:sidekiq_run_in_background)) background :bundle, :exec, :sidekiq, args.compact.join(' ') else - execute :bundle, :exec, :sidekiq, args.compact.join(' ') + execute :nohup, :bundle, :exec, :sidekiq, args.compact.join(' ') end end