Skip to content

Instantly share code, notes, and snippets.

@yetanothernguyen
Created October 7, 2011 09:35
Show Gist options
  • Save yetanothernguyen/1269900 to your computer and use it in GitHub Desktop.
Save yetanothernguyen/1269900 to your computer and use it in GitHub Desktop.
bluepill config for delayed_job
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