Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example for having Redis on Red Hat OpenShift
Shell
branch: master

This branch is 9 commits ahead, 7 commits behind razorinc:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.openshift/action_hooks
.gitignore
README.md

README.md

redis-openshift-example

This git repository is an example on how to have Redis on Red Hat OpenShift Express. The .openshift directory contains the necessary build action_hook to download Redis source code and build from scratch.

Running on OpenShift

Create an account at https://www.openshift.com

Create a OpenShift application (using any application name you want)

rhc app create redis ruby-1.8

(Note: ruby-1.8 is just an example)

Add this upstream polyglot repository

cd redis
git remote add redis -m master git://github.com/openshift-quickstart/redis-openshift-example.git
git pull -s recursive -X theirs redis master

Then push the repo upstream

git push

That's it! Now you have simple Ruby application (in this case) with Redis server. The first deploy takes a bit longer as the necessary libraries and tarballs are downloaded to your OpenShift instance, so grab a cup of coffee and after a minute or two test that your application deployed correctly by going to

http://redis-$yournamespace.rhcloud.com/

Congratulations! You're up and running with your application and Redis on OpenShift.

License

This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)

Something went wrong with that request. Please try again.