Spring using default

I updated the rails to 4.1.0 and installed gem "spring"

After that I paid bundle exec spring binstub --all. Now all mine bin/*include

begin
  load File.expand_path("../spring", __FILE__)
rescue LoadError
end

But, if I run in, saying time spring rake -Tand time rake -Tonce 1 second and 3 seconds! It seems like spring is not used by default in my application. Something went wrong? It’s bad that I need to write annoying spring ..command..before any rake task, rails or rspec server. What do I need to do to avoid the command springwith spring by default?

0
source share
1 answer

spring . , , .

# make sure that spring server is stopped
>> spring stop

# take note of the time here
>> time bin/rake routes

# start spring server
>> spring

# test routes again
>> time bin/rake routes

bin/rake routes . spring 8 . spring .

rspec . spring gem

+2

Source: https://habr.com/ru/post/1538168/


All Articles