Skip to content

Commit

Permalink
Fix Sidekiq :start Capistrano recipe to work as a background task
Browse files Browse the repository at this point in the history
  • Loading branch information
sush committed Feb 29, 2012
1 parent 2456edd commit a57b09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/capistrano.rb
Expand Up @@ -16,7 +16,7 @@
desc "Start sidekiq"
task :start do
rails_env = fetch(:rails_env, "production")
run "cd #{current_path} && bundle exec sidekiq -e #{rails_env} -C config/sidekiq.yml -P tmp/pids/sidekiq.pid >> log/sidekiq.log &"
run "cd #{current_path} && nohup bundle exec sidekiq -e #{rails_env} -C config/sidekiq.yml -P tmp/pids/sidekiq.pid >> log/sidekiq.log < /dev/null 2>&1 & sleep 1"
end

desc "Restart sidekiq"
Expand Down

0 comments on commit a57b09c

Please sign in to comment.