Avoid npm development modules install on Openshift
This is mostly a reminder for me. When publishing a new version on your Openshift environment a
npm install is run by default. However you can configure it to install only the modules under dependencies in your
package.json file instead of installing both dependencies and devDependencies modules.
Configure rhc and run:
rhc env set NPM_CONFIG_PRODUCTION="true" --namespace your-namespace --app your-app-name
On your next run the devDependencies modules won’t be installed.
However if you are aiming to clean up some space you should clean your previously installed modules manually by doing:
1. SSH on your machine directly
3. Remove your
This flag can be trigged on also on machine run using Openshift triggers. For more information you can follow the [stackoverflow question](http://stackoverflow.com/questions/20724133/run-npm-install-production-on-openshift) about this topic.
No comments yet.