1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Redirect stderr and stdout to log file

This commit is contained in:
Mike Perham 2012-03-09 19:03:04 -08:00
parent c8651c59e0
commit 9a4b8f0d09

View file

@ -19,7 +19,7 @@ Capistrano::Configuration.instance.load do
desc "Start sidekiq"
task :start do
rails_env = fetch(:rails_env, "production")
run "cd #{current_path} && nohup bundle exec sidekiq -e #{rails_env} -C #{current_path}/config/sidekiq.yml -P #{current_path}/tmp/pids/sidekiq.pid >> #{current_path}/log/sidekiq.log &"
run "cd #{current_path} && nohup bundle exec sidekiq -e #{rails_env} -C #{current_path}/config/sidekiq.yml -P #{current_path}/tmp/pids/sidekiq.pid &>> #{current_path}/log/sidekiq.log &"
end
desc "Restart sidekiq"