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

@@ -13,6 +13,7 @@ if defined?(PhusionPassenger)
# We're in smart spawning mode.
$redis = DiscourseRedis.new
Discourse::Application.config.cache_store.reconnect
MessageBus.after_fork
else
# We're in conservative spawning mode. We don't need to do anything.
end