How to Install Ghost on OpenShift
- To get started with OpenShift sign up for the developer preview account.
- Once you have filled out the form check your email and click the account verification link.
Next go to the list of community OpenShift Applications that are available for deploying.
Search for Ghost.
Click on the Application Ghost
On the Ghost Quickstart page and choose your Public URL. This URL can be anything you would like. We have choosen
ghostfor our URL which will be used in several places later in this guide. Leave everything else as the default and click Create Application
Now while your OpenShift Gear is being deployed you need to download and install their command line tools,
rhc. Details for each operating system are available here but the command for Linux and Mac OS X is:
gem install rhc
Once you see the message "Your application has been created" click the link to be taken to the application overview page.
Now that your Ghost application is launched you need to run a couple of commands to configure it (The --app parameter is the Public URL you picked in step 5):
rhc set-env NODE_ENV=production --app ghost rhc app restart ghost
Adding a Theme
To add a theme to Ghost you will need to clone your OpenShift application to your local computer, add the theme, and push everything back up.
- First, start by downloading the new theme locally to your computer
Now in the OpenShift console you need to grab the Source Code URL.
Now in your command line interface application clone your git repository with the
git clone ssh://email@example.com/~/git/ghost.git/ cd ghost
Add your theme to the content/themes directory
On the command line commit this new theme:
git add . git commit 'adding new theme' git push
After about a minute your Ghost instance will be restarted and your new theme will be available for selection in the Settings.