Created
March 2, 2011 10:58
-
-
Save vrybas/850775 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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