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?
- 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.
0 comments:
Post a Comment