Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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/"
process.uid = "app"
process.gid = "app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.