Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
QuickStart node.js on OpenShift | A sample template for running node.js applications on OpenShift
branch: master

This branch is 16 commits ahead, 1 commit behind gshipley:master

Merge pull request #3 from soltysh/card224

Card origin_cartridge_224 - Upgrading nodejs quickstarts to version 0.10
latest commit 56b4f407da
@bparees bparees authored
Failed to load latest commit information. Upgrading nodejs quickstarts to version 0.10

Node.js on OpenShift

This git repository helps you get up and running quickly w/ a node.js installation on OpenShift. Previous contents of this repository was obsoleted, as currently the basic application created using OpenShift CLI matches exactly its previous contents.

Running nodejs app on OpenShift

Create an account at

Install git, rubygems and rhc client for interacting with openshift infrastructure. Detailed instructions per OS are available at

Create a nodejs-0.10 application using rhc:

rhc app create <appname> nodejs-0.10

That's it, you can now checkout your application at:


Now you can modify the code, commit and push back up to your OpenShift application using:

git commit
git push

For that it might be useful to know a little about git workflow, sample tutorial can be found here.

Finally full OpenShift nodejs cartridge documentation can be found at:

Repo Layout

.openshift/                 - Location for OpenShift specific files.
.openshift/action_hooks/    - Entry points into various application and
                              platform lifecycle operations.
.openshift/cron/            - Scripts or jobs to be run on a periodic basis.
.openshift/markers/         - Marker files, eg. hot_deploy enabling hot
                              deploy feature.
node_modules/               - Any node modules packaged with the app.                   - This file.
deplist.txt                 - Deprecated.
index.html                  - Default OpenShift page seen when you open your
                              app in a web browser.
package.json                - npm package descriptor.
server.js                   - Main application file, where the whole logic
                              is placed.
Something went wrong with that request. Please try again.