Development / Production Recommended Workflow?

Bob Hood bhood2 at comcast.net
Thu Aug 5 13:07:46 UTC 2021


I think the next step up from the patch approach would be simply to run a web 
server on your local repo and pull the change to your sever.  This of course 
assumes you have the ability to (briefly) expose your local repo to the 
Internet so the server can see it.

https://tortoisehg.readthedocs.io/en/latest/serve.html



On 8/5/2021 5:26 AM, Simon Harrison wrote:
> Hello. Are patches a recommended way of keeping dev and production
> directories in sync?
>
> I have local Mercurial repo's but for production I just dump the
> directory on a server and then run from my local repo:
>
> $ hg export -r tip > tip.patch
>
> and then run the patch on the server. It's certainly an improvement on
> my old way of manually changing the files on the server, but it
> still feels a bit clunky.
>
> What's the current best practice for this sort of thing?
>
> Thanks
>




More information about the Mercurial mailing list