Re: Organizing Projects
From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Mon, 21 Mar 2011 05:16:58 -0500
On Mar 18, 2011, at 14:33, Greg Lindstrom wrote:
> Traditionally, we set up a "trunk", "branches" and "tags" directory in Subversion for each project. I have a good feel for creating branches, making changes, merging back to the trunk and creating a tag. What I would like advice on is how to migrate to production. Currently, after I make a tag I will check it out to a "distros" directory (named the same as the tag) and then change a pointer from the "old" distro to the new one. This way we have a history of distros and it's easy to revert back if an error is found. The problem I have with this setup is that is what Subversion is designed to do for me (keep track of changes).
Consider using SVN::Notify::Mirror, a perl module explained by its author here:
http://svn.haxx.se/users/archive-2006-02/1148.shtml
The theory of operation is that, whenever you want to deploy something to production, you simply create a tag following a certain naming scheme (that you can define). A post-commit hook in the repository runs SVN::Notify::Mirror which notices when new production tags are created and mirrors their contents to your production server.
|
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.