-
Notifications
You must be signed in to change notification settings - Fork 0
Openshift
The following instructions make deploying pump.io to Openshift quite easy. Currently there is a slight problem though, since pump.io has a hard dependency on GraphicsMagick/ImageMagick, which doesn't appear to be available on the canonical instance of Openshift hosted by the Red Hat Openshift folks. This means that uploading images will currently not work, and maybe other image related activities also (viewing images?).
One idea might be to just deploy a version of pump.io based on a commit older than when the GraphicsMagick dependency was introduced.
- Sign up for an account with OpenShift
- Install the OpenShift Client Tools and run
rhc setupto configure them. - Create a new Openshift app from the CLI tool by running:
rhc app create <mypump> nodejs-0.6 mongodb-2.2
Replace with whatever you would like your app to be called. The URL to your app will be http://<mypump>-<myOpenshiftHandle>.rhcloud.com (of course you may also point a custom domain name at that).
- The output from the above will give lots of information relevant to your app. The only thing you will need here is the Git URL.
- Clone pump.io from e14n, and add the Git URL from the newly created Openshift app above, as a remote to the pump.io repo.
git clone git://github.com/e14n/pump.io.git
cd pump.io
git remote add openshift <Git URL>
- Add the .openshift directory as a submodule from grdryn's repository:
git submodule add git://github.com/grdryn/nodejs-custom-version-openshift.git .openshift
git commit -m "Submodule .openshift dir from grdryn"
- Force push to your openshift app repo:
git push openshift master:master -f
This should be all you need. The .openshift directory contains all of the instructions to install all dependencies, connect to the mongodb database, and all of that stuff!