-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpacker::Env.current cannot be changed when using NODE_ENV and spring #205
Comments
Can't you just use |
@activefx Yes as @mfazekas pointed out please use # inside an initializer
Spring.watch 'config/application.yml' The last option would be to restart spring if you change |
Perhaps, we could do this too? if defined?(Spring)
Spring.after_fork do
# Reload
Webpacker::Env.load
end
end |
Closed by #221 |
Webpacker::Env.current cannot be changed with NODE_ENV after initial load when using spring (unless spring is disabled or stopped).
Steps to reproduce
Using webpacker master branch (3564a1c) with Rails 5.1.0.rc1
Expected behavior
Actual behavior
System configuration
Rails version:
5.1.0.rc1
Ruby version:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]
Webpacker:
3564a1c
The text was updated successfully, but these errors were encountered: