This is a mirror of official site: http://jasper-net.blogspot.com/

How to deploy web applications using Mercurial

| Thursday, December 2, 2010
Does deploying changes to your site take too long? Are you tired of manually sorting out the update? Here is how to deploy your projects using Mercurial.

Why?

  • Ease of updating. Mercurial keeps track of the changes and only sends the necessary changes -  you don’t need to worry about transferring files.
  • Make it possible to roll back changes on the deployed site. You can use hg to roll back from a bad update if necessary.
  • Once set up, it’s beautiful. “hg deploy”. How can you not like that?
How is this different from the other guide you wrote about setting up private repo hosting?
  • While the differences aren’t that big, this setup is better for deployment rather than code distribution via repositories:
  • Minimal dependencies. This approach only uses the hg-ssh script from the Mercurial core contrib.
  • Manual configuration. You can set different directories for each repository which allows you to work with your existing webroot setup. However, you will need to manually add new repositories, since hg-ssh does not support adding new repositories remotely.
If you want a private version of Bitbucket (without any additional features, of course), e.g.  to be able to remotely init/clone new repositories, check out my other tutorial about setting up private repo hosting.

1. Make sure that the .hg directories are never served to the public

Read more: Mixu's tech blog

Posted via email from .NET Info

0 comments: