Skip to content

Instantly share code, notes, and snippets.

@michelson
Forked from gma/gist:674141
Created May 23, 2011 02:38
Show Gist options
  • Save michelson/986130 to your computer and use it in GitHub Desktop.
Save michelson/986130 to your computer and use it in GitHub Desktop.
Bluepill config for resque
ENV["PATH"] = "/opt/ruby/bin:#{ENV['PATH']}"
ENV["RAILS_ENV"] = "production"
ENV["QUEUE"] = "*"
Bluepill.application("nichelator") do |app|
app.working_dir = "/var/apps/nichelator/current"
app.uid = "app"
app.gid = "app"
2.times do |i|
app.process("resque-#{i}") do |process|
process.group = "resque"
process.start_command = "bundle exec rake resque:work"
process.pid_file = "/var/apps/canvas/shared/pids/nichelator-resque-#{i}.pid"
process.stop_command = "kill -QUIT {{PID}}"
process.daemonize = true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment