How to Install Ghost on OpenShift

  1. To get started with OpenShift sign up for the developer preview account.
  2. Once you have filled out the form check your email and click the account verification link.
  3. Next go to the list of community OpenShift Applications that are available for deploying.

  4. Search for Ghost.


  5. Click on the Application Ghost

  6. On the Ghost Quickstart page and choose your Public URL. This URL can be anything you would like. We have choosen ghost for our URL which will be used in several places later in this guide. Leave everything else as the default and click Create Application


  7. 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
  8. 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.

  1. First, start by downloading the new theme locally to your computer
  2. Now in the OpenShift console you need to grab the Source Code URL.


  3. Now in your command line interface application clone your git repository with the git clone command:

    git clone ssh://
    cd ghost
  4. Add your theme to the content/themes directory

  5. 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.