spring
spring copied to clipboard
Rails application preloader
This happened to me when running `rails db:migrate`. I have never seen this before, and I have been using spring daily for years. Maybe it is connected to the changes...
README recommends to set newer `enable_reloading` config https://github.com/rails/spring/blob/b6dc87e62d6c2192a2ba46782804e2790ec8e5f7/README.md?plain=1#L74 while the raised message still asks to tweak old `cache_classes` config which may eventually be removed. Let's update the error to ask...
I have spring and I run bin/rspec spec/views/some_spec.rb The output message is https://github.com/twitter/activerecord-reputation-system.git (at master) is not yet checked out. Run `bundle install` first I run bundle install but nothing...
I believe that the support version of Rails has changed from [this commit](https://github.com/rails/spring/commit/de5eacfb8671d3e0acd21a9d38c7296e3437afcc).
Call me crazy, but once in a while I need to restart spring to fix some issue. Usually, I have to go through a painful debugging phase before realizing that...
The docs say: > From within your code, you can check whether Spring is active with `if defined?(Spring)`. But `Spring` is defined when running `rails s` even without Spring. With...
We don't want to use spring at all on our CI server, so we export the var `DISABLE_SPRING=1`, which is supposed to stop spring from running. However, we are seeing...
The following piece of code handle environment variable reloads in Spring https://github.com/rails/spring/blob/770b2b15b2ecb04fc0c3bda106a89d4a111a3a6c/lib/spring/application.rb#L163-L167 What it does is: - iterate over environment variables from when spring was started and remove those that...
How to reproduce: ``` docker run --rm -it ruby:3.1-bullseye /bin/bash mkdir app cd app bundle init bundle config set --local path 'vendor/bundle' bundle add rails -v '~> 6.1.0' bundle exec...
I suddenly starting running into an issue today on my Rails project where all commands I run that use `spring` as a preloader, such as `rspec` or `rake` fail due...