Re: recipe to use git for deployment
- From
- Neal Kreitzinger <nkreitzinger@gmail.com>
- Date
- May 5, 2012, 05:30 UTC
- Message-ID
- <4FA4BAF3.10601@gmail.com>
- In-Reply-To
- <1336190286-sup-3813@nixos>
On 5/4/2012 11:10 PM, Marc Weber wrote:
Show 5 quoted lines
> > If you really care that much about history why not push a zip file > using git archive --format=zip and unpack that on the deployment > server instead? >
I summon forth the ents to do my bidding with one command to find them: --format=tar one command to transform them: --prefix=deployed/path one command to arm them: config tar.umask (executable bits) one command to gather them: tar -A and one command to bind them: gzip
(We don't have the new tar with the transform option)
They are faithful and true and have won many battles, but I fear they may be too slow and lumbering for the gathering whirlwind of patches about to descend from above and legion of servers encircling them on all sides.
Interestingly, git-archive was not intended for deployment, but it does pretty good at it.
(Sorry, I haven't even read LOTR, but couldn't resist the opportunity to use the word 'ent' after reading about it in git-glossary ;)
v/r, neal