Skip to content

Instantly share code, notes, and snippets.

@cheald
Created November 29, 2012 23:11
Show Gist options
  • Save cheald/4172565 to your computer and use it in GitHub Desktop.
Save cheald/4172565 to your computer and use it in GitHub Desktop.
# After forking, reconnect any Redis connections
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
if forked
reconnect_redis()
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment