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.
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.
stage
branch$ git branch stage
stage
branch$ git push origin stage
You have a prod
branch for the production site.
prod
branch$ git branch prod
prod
branch$ git push origin prod
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:
master
- http://zf-tutorial.kcblog.net/dev/stage
- http://zf-tutorial.kcblog.net/stage/prod
- http://zf-tutorial.kcblog.net/prod/We are trying to make developers life easier. Kindly fork this on GitHub and submit your pull requests to help us.