OpenShift & CloudFoundry - bootstraponline/meta GitHub Wiki

Simple overview of deploying gollum to OpenShift and CloudFoundry.

OpenShift

Creating a domain.

rhc domain create -n cafe -l [email protected] -p password

User already has a domain associated. Update the domain to modify.

Use 'alter' instead of 'create' to fix above.

rhc domain alter -n cafe -l [email protected] -p password

Creating an app.

rhc app create -a sinatra -t ruby-1.8 -p password

Ensure public key on website is up to date if permission denied errors occur. https://openshift.redhat.com/app/account

"Agent admitted failure to sign using the key" is fixed by ssh-add libra_id_rsa.pub on Ubuntu.

touch .openshift/markers/force_clean_build
bundle install
Commit and push to openshift.

Cloud Foundry

gem install vmc caldecott
vmc target api.cloudfoundry.com
vmc login

# in app directory
bundle install

Deploy current dir as rack app.

vmc push wiki

Internal server error when deploying gollum. vmc ignores .git.

wikicafe.cloudfoundry.com