Skip to content

Instantly share code, notes, and snippets.

@hakanensari
Forked from gma/gist:674141
Created February 6, 2011 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakanensari/813768 to your computer and use it in GitHub Desktop.
Save hakanensari/813768 to your computer and use it in GitHub Desktop.
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