Mobile app version of vmapp.org
Login or Join
Ravi8258870

: 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

@Ravi8258870

Posted in: #SharedHosting

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi8258870

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme