-
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
Cloning the production configuration to a staging environment #1301
Comments
I'm not quite sure what you mean by clone, but if you mean that you'd like to use the same Webpack configuration in both production and staging environments, I can think of a couple separate options below. These are both based on the fact that the Webpacker executables expect a file in
|
Thanks. Yes, option 2 is what I had in mind but I've been unsuccessful. I think this is what you're suggesting, and I'll test, but does it look right to you?
|
I think the problem with this is that webpacker internally loads |
What is the error you're getting? Did you add a staging entry to |
Looks like there's also work being done in #1304 to make this easier. |
no errors but I think the issues is that https://github.com/rails/webpacker/blob/master/package/index.js#L11 loads files based on NODE_ENV. So if |
Please try 3.3.0 |
What is the recommended way to clone the production environment configuration in
@rails/webpacker/environments/production.js
to another environment? I'd like to guarantee that our staging environment is identical to production even if@rails/webpacker/environments/production.js
changes.The text was updated successfully, but these errors were encountered: