Chin Lee

Home

Easy Deployment with GitHub

Published Mar 22, 2012

I wrote a GitHub Post-Receive Deployment Hook to deploy applications to staging and production automatically.

Follow the instruction in the README to setup your stage and prod branches.

Making Your Life Easier

You are on master branch by default, and this is the development branch for all your commits and pushes.

Next you might want to have stage branch for testing purposes.

Creating stage branch

$ git branch stage

Pushing stage branch

$ git push origin stage

You have a prod branch for the production site.

Creating prod branch

$ git branch prod

Pushing prod branch

$ git push origin prod

Results

I have updated a tutorial of my previous post Creating Zend Framework Project from Scratch to have branches and versions, and each of them are deployed to the following addresses:

Conclusion

We are trying to make developers life easier. Kindly fork this on GitHub and submit your pull requests to help us.