Code Monkey home page Code Monkey logo

nodejs-4-lts-openshift's Introduction

Running the latest (4.2.x) LTS Node[.js] version on Red Hat's OpenShift PaaS

This git repository is a sample Node application along with the "orchestration" bits to help you run the latest (or a custom) version of Node on Red Hat's OpenShift PaaS.

(Current) NodeJS Version: 4.2.6

Steps to get the latest Node.js version running on OpenShift

Create an account at http://openshift.redhat.com/

Create a namespace, if you haven't already do so

rhc domain create <yournamespace>

Create a nodejs application (you can name it anything via -a, -t here is used to start with the default supported OpenShift nodejs application)

rhc app create -a node4  -t nodejs-0.10

Add this github nodejs-4-lts-openshift repository to the OpenShift git project remote

cd node4
git remote add github -m master https://github.com/h4t0n/nodejs-4-lts-openshift.git

Get updates from the remote with merge conflicts properly resolved (NB: don't run git pull github alone)

git pull -s recursive -X theirs github master

Push the updates coming from github nodejs-4-lts-openshift into the OpenShift git project.

git push

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

http://node4-$yournamespace.rhcloud.com ( See env @ http://node-$yournamespace.rhcloud.com/env )

If you want another version of Node (example v0.12.x), you can change to that by just writing it to the end of the NODEJS_VERSION file and committing that change.

echo 0.12.7 >> .openshift/markers/NODEJS_VERSION
#
# Or alternatively, edit the .openshift/markers/NODEJS_VERSION file
# in your favorite editor aka vi ;^)
#
#
git commit . -m 'use Node version 0.12.7'

Then push the repo to OpenShift with git push

Additional information

This repository is a fork of Ramr nodejs custom version. See it for documentation about Openshift hooks or if you want additional information.

nodejs-4-lts-openshift's People

Contributors

ramr avatar h4t0n avatar michaelryanmcneill avatar kanakiyajay avatar

Watchers

James Cloos avatar 23rharris avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.