Skip to content

Instantly share code, notes, and snippets.

@bacarini
Last active June 21, 2016 20:53
Show Gist options
  • Save bacarini/b789b37fdbff8076eaaf30aba6f8d7e1 to your computer and use it in GitHub Desktop.
Save bacarini/b789b37fdbff8076eaaf30aba6f8d7e1 to your computer and use it in GitHub Desktop.
config/unicorn/production.rb
before_fork do |_, _|
MyApp::SequelDb.disconnect_all
end
after_fork do |_, _|
MyApp::SequelDb.start_connections
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment