Posted about 3 years ago. Visible to the public. Repeats.

3 ways to run Spring (the Rails app preloader) and how to disable it

spring ...

The most obvious way to use spring is to call it explicitly:

spring rails console spring rake db:migrate


Binstubs are wrapper scripts around executables. In Rails they live inside bin/. If you run spring binstub --all, your binstubs will be using Spring.

bin/rails console bin/rake db:migrate

bundle exec rails ...

You would not expect, but this also runs with Spring. However, bundle exec rake does not. Better use binstubs :)

bundle exec rails console # starts Spring bundle exec rake # does not start Spring

Disabling Spring

You can temporarily disable Spring by setting the environment variable DISABLE_SPRING. Obviously, this does not work when calling Spring explicitly.

makandra has been working exclusively with Ruby on Rails since 2007. Our laser focus on a single technology has made us a leader in this space.

Author of this card:

Dominik Schöler
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Dominik Schöler to makandropedia