mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 07:13:24 +08:00

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"
|