File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,17 @@ def serve(client)
173
173
IGNORE_SIGNALS . each { |sig | trap ( sig , "DEFAULT" ) }
174
174
trap ( "TERM" , "DEFAULT" )
175
175
176
- STDERR . puts "Running via Spring preloader in process #{ Process . pid } " unless Spring . quiet
176
+ unless Spring . quiet
177
+ STDERR . puts "Running via Spring preloader in process #{ Process . pid } "
178
+
179
+ if Rails . env . production?
180
+ STDERR . puts "WARNING: Spring is running in production. To fix " \
181
+ "this make sure the spring gem is only present " \
182
+ "in `development` and `test` groups in your Gemfile " \
183
+ "and make sure you always use " \
184
+ "`bundle install --without development test` in production"
185
+ end
186
+ end
177
187
178
188
ARGV . replace ( args )
179
189
$0 = command . exec_name
You can’t perform that action at this time.
0 commit comments