-
-
Save michelson/986130 to your computer and use it in GitHub Desktop.
Bluepill config for resque
This file contains 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
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