-
Notifications
You must be signed in to change notification settings - Fork 286
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
NODE_ENV not working for different build environments #244
Comments
Code snippet from 12/s2i/bin/assemble:
Fix source directory permissionsfix-permissions ./ |
This definitely looks like a bug to me: https://github.com/sclorg/s2i-nodejs-container/blob/master/14/s2i/bin/assemble#L89
|
@ryanj exactly. I also found it. I guess it's kind of a hack to install both dependencies and dev dependencies. |
Hi there!
I've noticed that setting the NODE_ENV variable to something other than "production" doesn't takes the nodejs runtime mode into account.
My package.json has the following scripts added:
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"production": "ng build --configuration=production",
"integration": "ng build --configuration=integration",
"development": "ng build --configuration=dev",
"run_dev": "ng serve --configuration=dev"
}
When passing either NODE_ENV=integration or event NODE_ENV=development it just downloads the package dependencies but never builds the source.
Is this an intended use case for the sources not being built? If that's the case, then s2i build would only create a container with the source code and it's dependencies.
Stay safe and all the best,
Ralph
The text was updated successfully, but these errors were encountered: