forking in passenger was bust, message bus subscriptions would stop working after fork

This commit is contained in:
Sam
2013-06-03 16:50:30 +10:00
parent 978bc0ca4e
commit 8b69ee26ff
4 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@
# spring binstub rspec
Spring.after_fork do
$redis.client.reconnect
MessageBus.reliable_pub_sub.pub_redis.client.reconnect
Rails.cache.reconnect
MessageBus.after_fork
end
Spring::Commands::Rake.environment_matchers["spec"] = "test"