mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 05:33:40 +08:00
f3cc7360e0
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
12 lines
277 B
Ruby
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"
|