LoginSignup
17
10

More than 5 years have passed since last update.

bin/railsを実行するときに、Springを起動しない

Last updated at Posted at 2016-02-15

./bin/rake./bin/railsを実行すると、Spring Serverが自動で立ち上がるが、本番環境などでは、メモリーを食うため、起動したくない。そんなときDISABLE_SPRING=1を追加すると、Springを起動せずに実行できる

$ DISABLE_SPRING=1 RAILS_ENV=production ./bin/rails console

参考

17
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
10