mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
13 lines
361 B
Ruby
13 lines
361 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
|
|
MessageBus.reliable_pub_sub.pub_redis.client.reconnect
|
|
Rails.cache.reconnect
|
|
end
|
|
Spring::Commands::Rake.environment_matchers["spec"] = "test"
|