Created
October 7, 2011 09:35
-
-
Save yetanothernguyen/1269900 to your computer and use it in GitHub Desktop.
bluepill config for delayed_job
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("says", :log_file => "/var/www/says-dot-com-staging/current/log/bluepill.log") do |app| | |
app.process("delayed_job") do |process| | |
process.working_dir = "/var/www/says-dot-com-staging/current" | |
process.stdout = process.stderr = "/var/www/says-dot-com-staging/current/log/delayed_job.log" | |
process.start_grace_time = 60.seconds | |
process.stop_grace_time = 60.seconds | |
process.restart_grace_time = 60.seconds | |
process.start_command = "/usr/bin/env RAILS_ENV=staging bundle exec script/delayed_job start --db=us --pid-dir=/var/www/says-dot-com-staging/shared/pids --prefix staging" | |
process.stop_command = "/usr/bin/env RAILS_ENV=staging bundle exec script/delayed_job stop --db=us --pid-dir=/var/www/says-dot-com-staging/shared/pids --prefix staging" | |
process.pid_file = "/var/www/says-dot-com-staging/shared/pids/delayed_job.pid" | |
process.uid = "ubuntu" | |
process.gid = "ubuntu" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment