Development / Production Recommended Workflow?

Dr. Arne Babenhauserheide arne_bab at web.de
Thu Aug 5 23:49:26 UTC 2021


Simon Harrison <info at simonh.uk> writes:

> What's the current best practice for this sort of thing? 

I nowadays have an lftp-hook in the local repository and a local site
directory that I mirror to the server.

draketo/
  …/
  site/

post-push.draketo = find site -iname '*~' -print0 | xargs -0 rm -f ; cd site && lftp -e 'set ftp:ssl-force true; set ftp:ssl-protect-data true; mirror --ignore-time -R; bye' ftp://USER:PASSWORD@ftp.example.com/WEBSITE

This way I can always mirror my local setup in site/ to the server, but
I do not have to track the differences in setup in Mercurial.

But I now also use static sites wherever possible.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1125 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20210806/ff7550e3/attachment.asc>


More information about the Mercurial mailing list