Created
May 16, 2011 20:47
-
-
Save jlogsdon/975341 to your computer and use it in GitHub Desktop.
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 | |
working_directory "/Users/jlogsdon/Projects/Vitrue/publisher" | |
preload_app true | |
timeout 30 | |
listen "/Users/jlogsdon/Projects/Vitrue/unicorn/publisher.sock", :backlog => 64 | |
pid "/Users/jlogsdon/Projects/Vitrue/unicorn/publisher.pid" | |
stderr_path "/Users/jlogsdon/Projects/Vitrue/unicorn/publisher.error.log" | |
stdout_path "/Users/jlogsdon/Projects/Vitrue/unicorn/publisher.out.log" | |
before_fork do |server, worker| | |
defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect! | |
end | |
after_fork do |server, worker| | |
defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment