Created
February 16, 2012 06:45
-
-
Save nambrot/1842737 to your computer and use it in GitHub Desktop.
config/unicorn.rb
This file contains hidden or 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
worker_processes 2 # amount of unicorn workers to spin up | |
timeout 3000 | |
@resque_pid = nil | |
@resque_pid2 = nil | |
before_fork do |server, worker| | |
@resque_pid ||= spawn("bundle exec rake jobs:work") | |
@resque_pid2 ||= spawn("bundle exec clockwork app/clock.rb") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment