Node.js based forum software built for the modern web
Update guide openshift with redis
Emilien Devosf9b5249a4972
diff --git a/docs/installing/cloud/openshift.rst b/docs/installing/cloud/openshift.rstindex 1bc5872a45..7becb86aa4 100644--- a/docs/installing/cloud/openshift.rst+++ b/docs/installing/cloud/openshift.rst@@ -11,11 +11,11 @@ The following are installation instructions for the `Openshift <http://openshiftThe nodebb command after the git url will create a file called nodebb so you have to CD into the file after you have cloned NodeBB.-**Step 2:** Add cartridge MongoDB+**Step 2:** Add cartridge Redis.. code:: bash- rhc cartridge add mongodb-2.4 -a nodebb+ rhc add-cartridge http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-redis-cart -a nodebb**Step 3:** SSH to the application@@ -23,11 +23,12 @@ The nodebb command after the git url will create a file called nodebb so you havrhc app ssh -a nodebb-**Step 4:** Find out your instance’s ip address NodeJS and MongoDB so NodeBB can bind to it correctly. This is one of Openshift’s demands and seems to be the only way it will work. You can’t use $IP in your config.json either (which means you can’t enter $IP in the node app –setup). First line : NodeJS and second line : MongoDB+**Step 4:** Find out your instance’s ip address NodeJS and Redis so NodeBB can bind to it correctly. This is one of Openshift’s demands and seems to be the only way it will work. You can’t use $IP in your config.json either (which means you can’t enter $IP in the node app –setup). First line : NodeJS and second line : Redis+The ouput of the echo $REDIS_CLI like this : -h ip_redis -p port_redis -a password.. code:: bash- echo $OPENSHIFT_NODEJS_IP && echo $OPENSHIFT_MONGODB_DB_HOST+ echo $OPENSHIFT_NODEJS_IP && echo $REDIS_CLI**Step 5:** Exit SSH@@ -85,13 +86,11 @@ Port number : 8080IP or Hostname to bind to: Enter what your $OPENSHIFT_NODEJS_IP value holds here found in step 4.-Host IP or address of your MongoDB instance: Enter what your $OPENSHIFT_MONGODB_DB_HOST value holds here found in step 4.+Host IP or address of your MongoDB instance: Enter what your $REDIS_CLI value holds here found in step 4.-Host port of your MongoDB instance: 27017+Host port of your MongoDB instance: Enter what your $REDIS_CLI value holds here found in step 4.-MongoDB username : admin--MongoDB Admin Password: When you have added the cartridge MongoDB, the terminal give you a password, use it. If you are lost him, you will find it on the [Openshift Panel](https://openshift.redhat.com/app/console).+Redis Password: Enter what your $REDIS_CLI value holds here found in step 4.**Step 14:** And the last one, in other terminal, restart the application