Sponsored by Gluten Free Waffles and Sliced Bananas

Tuesday, December 11, 2012

Deploy an Existing Git Repository to OpenShift

5:46 PM Posted by Tyson Nero , No comments
Deployment to production can sometimes be a tricky matter, and it seems a lot of people have questions trying to figure out how to deploy and existing Git repo to an OpenShift application.

I followed this article:

Here were my steps of failure and success:

  1. Add my OpenShift Git repository as a remote in an existing Git repository. Note: my origin repo is hosted on GitHub.

    git remote add openshift ssh-url
  2. Pull and merge from OpenShift


    OpenShift returned with the following error
    Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
    fatal: The remote end hung up unexpectedly
    Apparently something was wrong with how my SSH keys were configured if at all.
  3. Run "rhc setup" within my Git directory. This will generate and configure SSH keys for communication with OpenShift.
  4. Pull and merge again from OpenShift
    I.e. git merge openshift/master -s recursive -X ours
  5. Commit changes and push to Openshift


Post a Comment