rhc create-app <app name> http://tinyurl.com/OpenShiftNodeDIY
- node.js (latest stable currently 0.10.35)
- npm (latest stable currently 1.4.28)
- grunt
- bower
Not much.
- Installs node.js (version specified by
$OPENSHIFT_NODEJS_VERSION
and resolved by semver.io) - Installs grunt, bower, and forever globally (specified by
$OPENSHIFT_NPM_GLOBALS
) - Allows the user to manually install required dependencies (in a
build
action_hook) - Runs
npm start
ifpackage.json
is found in repo directory (log is written to$OPENSHIFT_NODEJS_LOG_DIR
)
- Run
rhc env set OPENSHIFT_NODEJS_CUSTOM_VERSION="0.11.13" -a <app name>
- Run
rhc cartridge reload http://tinyurl.com/OpenShiftNodeDIY -a <app name>
Heads up!
The cartridge defaults to installing grunt, bower, and forever globally. Bower depends on node >=0.10.0. If you wish to use an older version of node set $OPENSHIFT_NPM_CUSTOM_GLOBALS
to not include bower.
- Run
rhc env set OPENSHIFT_NPM_CUSTOM_GLOBALS="gulp component" -a <app name>
- Run
rhc cartridge reload http://tinyurl.com/OpenShiftNodeDIY -a <app name>
These repos helped out a ton while developing this cartridge.