Skip to content

connyay/openshift-node4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is no longer maintained. PRs will be accepted.

node.js v4 cartridge for OpenShift

Usage

rhc create-app <app name> https://raw.githubusercontent.com/connyay/openshift-node4/master/metadata/manifest.yml

What this cartridge provides out of the box

  1. node.js (latest LTS (v4 train) currently 4.3.1)
  2. npm (latest stable currently 2.14.12)
  3. grunt
  4. gulp
  5. forever
  6. bower

What this cartridge does out of the box

Not much.

  1. Installs node.js v4
  2. Installs grunt, gulp, bower, and forever globally (specified by $OPENSHIFT_NPM_GLOBALS)
  3. Allows the user to manually install required dependencies (in a build action_hook). An example of this can be found here
  4. Runs npm start if package.json is found in repo directory (log is written to $OPENSHIFT_NODE4_LOG_DIR)

Note

For now I just dropped the contents of the node-v4.3.1.tar.gz here. I will move to resolving the latest stable and downloading on the gear in the near future.

Thanks!

These repos helped out a ton while developing this cartridge.

  1. engineersamuel/openshift-origin-cartridge-nodejs
  2. wshearn/openshift-origin-cartridge-nodejs
  3. ramr/nodejs-custom-version-openshift
  4. heroku/heroku-buildpack-nodejs