Github service hooks with Appharbor – Dev and Prod Workflows

Standard

In my previous post I talked about deploying a Github project’s dev branch to a dev web server and the master branch to a prod server on Appharbor. Here is how you set that up.

Prod Hook

  1. Create a new project in Appharbor.
  2. Click “Configure GitHub to deploy to AppHarbor”
  3. Choose the application
  4. This should create the bridge and you can now commit and push to your master repo on Github and your prod app will be deployed to Appharbor.

Dev Hook

  1. Create a new dev project in Appharbor
  2. Click “Configure GitHub to deploy to AppHarbor”
  3. Choose the application
  4. This should create the bridge. Now you must tell Appharbor to only deploy dev branch changes.
  5. Click “settings” and scroll down to tracking branch. Change this to dev (or whatever the branch name is)
  6. Now you should be able to push a change to the dev branch to Github and the hook will deploy it to your dev Appharbor app.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s