mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
spring config
This commit is contained in:
parent
ccae619d9a
commit
a0665105ec
13
config/spring.rb
Normal file
13
config/spring.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 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
|
||||
MessageBus.reliable_pub_sub.pub_redis.client.reconnect
|
||||
Rails.cache.reconnect
|
||||
end
|
||||
Spring::Commands::Rake.environment_matchers["spec"] = "test"
|
Loading…
Reference in New Issue
Block a user