spring config

This commit is contained in:
Sam 2013-04-24 12:00:14 +10:00
parent ccae619d9a
commit a0665105ec
1 changed files with 13 additions and 0 deletions

13
config/spring.rb Normal file
View 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"