https://github.com/redhataccess/labs-nodejs-cartridge
Openshift cartridge for Node.js
https://github.com/redhataccess/labs-nodejs-cartridge
Last synced: 2 months ago
JSON representation
Openshift cartridge for Node.js
- Host: GitHub
- URL: https://github.com/redhataccess/labs-nodejs-cartridge
- Owner: redhataccess
- License: apache-2.0
- Created: 2016-10-14T03:52:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-16T06:32:42.000Z (over 9 years ago)
- Last Synced: 2025-06-02T11:54:09.219Z (about 1 year ago)
- Language: HTML
- Size: 31.3 KB
- Stars: 0
- Watchers: 23
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Openshift Labs Node.JS
## Usage
1. **Create an app from LTS 4** `rhc create-app http://nodecartridge-dongrht.rhcloud.com/manifest/LTS-4`
1. **Create an app from LTS 6** `rhc create-app http://nodecartridge-dongrht.rhcloud.com/manifest/LTS-6`
2. **Create an app from the latest stable release** `rhc create-app http://nodecartridge-dongrht.rhcloud.com/manifest/stable`
3. **Create an app from the latest unstable release** `rhc create-app http://nodecartridge-dongrht.rhcloud.com/manifest/unstable`
What this cartridge provides out of the box
---
1. **node.js** ([latest LTS](https://semver.io/node/resolve/6) currently 6.9.1)
2. **npm** (latest stable currently 3.10.8)
3. **grunt**
4. **bower**
What this cartridge does out of the box
---
*Not much.*
1. Installs node.js (version specified by `$OPENSHIFT_NODEJS_VERSION` and resolved by [semver.io](https://semver.io))
2. Installs grunt, bower, and forever globally (specified by `$OPENSHIFT_NPM_GLOBALS`)
3. Allows the user to manually install required dependencies (in a `build` [action_hook](http://openshift.github.io/documentation/oo_user_guide.html#action-hooks))
4. Runs `npm start` if `package.json` is found in repo directory (log is written to `$OPENSHIFT_NODEJS_LOG_DIR`)
Thanks to all!
---
These repos helped out a ton while developing this cartridge.
1. [connyay/openshift-node-diy](https://github.com/connyay/openshift-node-diy)
2. [smarterclayton/openshift-cdk-cart](https://github.com/smarterclayton/openshift-cdk-cart)