I am new to subversion and am wondering how do you move from develoment to staging then production?
I think I grasp the concept of creating branches made for releases as detailed here. But how do I actually deploy the branch?
Ideally I could just set up a new website and copy the files over from the branch, but I am concerned about copying any svn bindings into production.
If it is pertinent, this is a Visual Studio website project and I am using VisualSVN server, TortoiseSVN and Ankh to integrate with Visual Studio.
svn export
Exports the files excluding all the subversion cruft
You're missing a piece here, basically - you shouldn't use subversion alone to deploy to test and production. Your best bet is to use some sort of script which will pull the build from subversion (if use svn export, it won't bring along subversion file hooks), build any necessary files (using MSBuild, which can be scripted), remove the unecessary files (such as .aspx.cs files since you've built the thing), and copy it over to your environment.
Locally, we use powershell to glue everything together and a combination of the svn command line, MSBuild, and nUnit from the command line to do our builds.
You want to do a svn export
. this will export the code without the .svn directories all over the place.
It sounds like you will want to do a SVN Export of the "release" branch. See the Subversion Book's Export documentation for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With