e14n/pump.io — pull request #631 by grdryn (2013-05-31 20:18:45+00:00)
Title: Submodule the openshift dir to enable easy deployment

This seems to be the cleanest way to add the .openshift directory based
on the grdryn/nodejs-custom-version-openshift repository, which is a
customized fork of the openshift/nodejs-custom-version-openshift repo.

This will enable us to add any changes from the upstream
openshift/nodejs-custom-version-openshift repo, keeping traceability,
while keeping the pump.io repository clean.

So, the good stuff is that with this change, one can deploy pump.io to
openshift as simply as (assuming rhc is installed):

rhc app create nodejs-0.6 mongodb-2.2 \
--from-code=git://github.com/e14n/pump.io.git

^That *should* work, but it seems that maybe the installation of dependencies takes too long, so the installation times out or something. The following works though:

rhc app create nodejs-0.6 mongodb-2.2

When this is finished, you will have a git repo with the name of your app ( above). There will also be some output of useful info from the rhc command, where you can grab the **Git URL** from.

Now, back in your pump.io repo, add *Git URL* from above as a remote:

git remote add openshiftapp

...and force push to overwrite everything on the server with this stuff:

git push openshift master:master -f