git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: recipe to use git for deployment

From
NKNeal Kreitzinger <nkreitzinger@gmail.com>
Date
May 16, 2012, 20:08 UTC
Message-ID
<4FB40920.6010106@gmail.com>
In-Reply-To
<CAMK1S_i0bsO0fp69Ae_75dySsN9r=z1+c2psEMm4urw+UpYGXw@mail.gmail.com>
On 5/5/2012 7:14 AM, Sitaram Chamarty wrote:
Show 8 quoted lines
> On Sat, May 5, 2012 at 11:00 AM, Neal Kreitzinger
> <nkreitzinger@gmail.com>  wrote:
>
>> Interestingly, git-archive was not intended for deployment, but it does
>> pretty good at it.
> Except it doesn't delete files that should be deleted (the way 'git
> checkout' does or rsync would if you gave it --delete).
>

Oh, yeah. Thats why I move everything to a backup directory before untarring it. That also satisfies our pre-git practice of saving off the old version before replacing it so we have a quick recovery point if the new version turns out to be worse than the old one!

v/r, neal

Previous: Sitaram ChamartyNext: Junio C Hamano
Message 7 of 9 in “recipe to use git for deployment”
  1. Neal KreitzingerMay 5, 2012
  2. Marc WeberMay 5, 2012
  3. Neal KreitzingerMay 5, 2012
  4. Marc WeberMay 5, 2012
  5. Neal KreitzingerMay 5, 2012
  6. Sitaram ChamartyMay 5, 2012
  7. Neal KreitzingerMay 16, 2012
  8. Junio C HamanoMay 5, 2012
  9. Ævar Arnfjörð BjarmasonMay 5, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.