Re: Using git for code deployment on webservers?
- From
- Allan Wind <allan_wind@lifeintegrity.com>
- Date
- Jun 16, 2009, 07:13 UTC
- Message-ID
- <20090616071328.GB6615@lifeintegrity.com>
- In-Reply-To
- <200906160111.47325.ioe-git@rameria.de>
On 2009-06-16T01:11:47, Ingo Oeser wrote:
> - Transfer as little as possible data. > Cancel out addition and deletion on the fly.
I use `git diff` with the post-receive hook to distribute changes to my web server. diff carries the previous content when you delete a file, and in my case this was large mpeg files defeating the purpose somewhat.
If you do not mind having a full repository on the web servers, then pushing changes might work better. This appears to be what you are doing now though.
If I had to scale this I would probably build a master image (either locally or remotely) and use rsync to distribute the content instead of git.
> - Nearly atomic update of file tree (easy to implement outside git)
stow can be handy for this.
/Allan
-- Allan Wind Life Integrity, LLC http://lifeintegrity.com