: How would I setup Mercurial to track site revisions on a shared host? What specific steps to I need to take to set it up? Do I need special post-commit hooks to update the remote copy of
What specific steps to I need to take to set it up?
Do I need special post-commit hooks to update the remote copy of the site?
Do I need SSH access to the remote server?
I'm looking for a setup where I can push the changes to the remote repository and the changes will be published to the website.
More posts by @Ravi8258870
1 Comments
Sorted by latest first Latest Oldest Best
You can configure Mercurial to run a web server using the hg serve command. A list of runtime options on hg serve are available here.
Once you have your web server set up, hg clone servername:port will pull a copy of the server's resources, and hg push from that directory will update the server.
To force the server to update itself upon receiving a new push, add the following to the .hg/hgrc file in the repository:
[hooks]
changegroup = hg update >&2
This should accomplish what you're looking for.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.