This is an old revision of the document!
Step 1: Install Ruby
Step 2: Install RubyGems
Step 3: Install Git
Step 4: Install the client tools
(ruby-full installs the gem binary automatically)
sudo apt-get install ruby-full git-core sudo gem install rhc
rhc setup
Step 1: Login to openshift.redhat.com
Step 2: Generate a Public/Private key pair
Step 3: Create your namespace (aka domain)
For ease of deployment use the pre-built dokuwiki-quickstart repository
https://github.com/openshift/dokuwiki-quickstart
Step 1: Create an empty application
Step 2: Download dokuwiki
Step 3: Push to OpenShift Online
rhc app create dokuwiki php-5.4 cd dokuwiki git remote add upstream -m master git://github.com/openshift/dokuwiki-quickstart.git git pull -s recursive -X theirs upstream master
Note: The git pull command above can be used later to pull updates to Dokuwiki
To customize Dokuwiki you must modify the git repository and the deploy scripts. This way your application customization will remain persistent accross each deployment.
Step 1: Install and configure Google Authentication
Step 2: Modify the Dokuwiki config files
Step 3: Update the deploy hook script
cd ~/dokuwiki/.openshift mkdir plugins cd plugins wget https://github.com/kettari/authgoogle/archive/master.tar.gz tar xf master.tar.gz rm master.tar.gz mv authgoogle-master authgoogle cd ~/dokuwiki/.openshift/conf vi local.php
You can obtain Secure Shell access to your application (Gear) by running the following command:
rhc ssh dokuwiki
The persistent date storage location for your application can be accessed in your deploy scripts by using the following environment variable:
$OPENSHIFT_DATA_DIRs
So Cloud Hosting could be the same thing as shared hosting… But Cloud hosting