Skip to content

Instantly share code, notes, and snippets.

@gma
Created November 12, 2010 14:17
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save gma/674141 to your computer and use it in GitHub Desktop.
Save gma/674141 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