php - Mercurial - keeping deployed and development repositories -


I'm working on a PHP website where I just added a switch to that environment - it's development When it's playing on my local site, and output when it's running live on the web host:

   

I have a mercurial site under VC, and usually just posted my site with hg push (the server also runs HG) However, in addition to this switch, the "production" site is always different from the "development" site in which the version is deployed, always on development instead of output Will be set.

This means that my deployment process

  1. develop
  2. test
  3. hg commit -m "made Change "
  4. hg push
  5. ssh host hg update
  6. 1 .
  7. Test
  8. Test
  9. hg comm -m "Made changes"
  10. < Li> development to output
  11. "hg commit -m" dev -> prod "
  12. hg push < / Code>
  13. ssh host hg update
  14. (later) output -> development
  15. Go to hg commit -m "prod -> dev"
  16. 1.

Which clearly Is not great.

Is anyone else, so that the live site will always be set to output and set my local copy to development Will be given

Instead of being a switch, there is a development branch and a production branch.


Comments