discourse/config/spring.rb
Sam f3cc7360e0 BUGFIX: Correct after_fork semantics
After fork SiteSettings was not getting a new process id,
causing site settings not to refresh properly in unicorn

This code also centralizes the logic
2014-03-31 12:34:13 +11:00

12 lines
277 B
Ruby

# spring speeds up your dev environment, similar to zeus but build in Ruby
#
# gem install spring
#
# spring binstub rails
# spring binstub rake
# spring binstub rspec
Spring.after_fork do
Discourse.after_fork
end
Spring::Commands::Rake.environment_matchers["spec"] = "test"