mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 12:53:46 +08:00
14 lines
328 B
Ruby
14 lines
328 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
|
|
$redis.client.reconnect
|
|
Rails.cache.reconnect
|
|
MessageBus.after_fork
|
|
end
|
|
Spring::Commands::Rake.environment_matchers["spec"] = "test"
|