Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created July 16, 2012 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadoz/3124878 to your computer and use it in GitHub Desktop.
Save ziadoz/3124878 to your computer and use it in GitHub Desktop.
Mercurial Remote Deployment
# /path/to/repository/.hg/hgrc
# $ hg push staging
# $ hg push live
[paths]
live = ssh://<username>@<server>//var/www/vhosts/<live-website>
staging = ssh://<username>@<server>//var/www/vhosts/<staging-website>
[hooks]
changegroup = hg update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment