When I push my code to OpenShift, it looks like it\'s installing my devDependencies
which takes forever. I would really love to set it up so it wil
You can tell npm to install using the --production
flag by setting the NPM_CONFIG_PRODUCTION
environment variable to "true
".
Here is an example that should work for existing applications:
rhc env set NPM_CONFIG_PRODUCTION="true"
Or, you can set this variable as a part of your initial app-create step:
rhc app create myapplication nodejs-0.10 NPM_CONFIG_PRODUCTION="true"