Re: svn update or rsync - which is best to update live files
From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Sat, 26 Feb 2011 16:47:23 -0600
On Feb 25, 2011, at 13:53, Blair Zajac wrote:
> On 2/25/11 11:39 AM, Christopher D Haakinson wrote:
Of course you do. The individual files may be atomically replaced, but the entire set of files won't be. If, like most web sites, your site is made with a scripting language, and file A includes file B, and both files have been changed, there will probably be a time during the update when A has been updated and B has not, or vice versa.
Here is a previous discussion with recommendations. See especially the paragraph that starts "For finally deploying a site to the production server" and the example that follows:
http://svn.haxx.se/users/archive-2009-04/0083.shtml
We manually ran a script on the production server when we wanted to deploy a tag there. If you want to do automatic deploys in the post-commit hook of the repository server, for example in response to creating a tag with a particular naming format, then the SVN::Notify::Mirror perl module will help you do that. Its author has explained its use on this mailing list many times, for example here:
http://svn.haxx.se/users/archive-2006-02/1148.shtml
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.