Skip to content

Instantly share code, notes, and snippets.

@vrybas
Created March 2, 2011 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrybas/850775 to your computer and use it in GitHub Desktop.
Save vrybas/850775 to your computer and use it in GitHub Desktop.
Bluepill.application("yourapp", :log_file => "/home/user/www/yourapp/shared/log/bluepill.log") do |app|
app.process("delayed_job") do |process|
process.working_dir = "/home/user/www/yourapp/current"
process.start_grace_time = 10.seconds
process.stop_grace_time = 10.seconds
process.restart_grace_time = 10.seconds
process.start_command = "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'default' -c 'RAILS_ENV=production ruby /home/user/www/yourapp/current/script/delayed_job start'"
process.stop_command = "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'default' -c 'RAILS_ENV=production ruby /home/user/www/yourapp/current/script/delayed_job stop'"
process.pid_file = "/home/user/www/yourapp/shared/pids/delayed_job.pid"
process.uid = "app"
process.gid = "app"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment