How to "push" manually?

Peter Hosey boredzo at gmail.com
Sun Apr 5 14:59:07 CDT 2009


On Apr 05, 2009, at 12:45:54, skip at pobox.com wrote:
> Now I would like push some recent changes to the website.  How do I  
> do that?
> There is no hg server running on the web server.

If you can run CGI scripts, you could install Mercurial and set up  
hgweb or hgwebdir to host the repository. Since those are CGI scripts,  
your existing web server runs them—no need for a separate server.  
(Additionally, you won't need to maintain a working copy on the  
server, since users can access the files through the hgweb interface.)

Alternatively, if you can mount the website directory in your local  
file system using either WebDAV or SFTP, you could do that, and simply  
push to /local/path/to/remote/repository. Whatever handles such  
network mounts (e.g., sshfs) will do the job of moving files back and  
forth; to Mercurial, it looks like a local file operation.

The third solution is to use Bitbucket. If you really want to also  
have a repository on your own server, you could set up a cron job to  
pull from Bitbucket every eight hours or so.




More information about the Mercurial mailing list