Pushing SVN repos files to production
Posted: Mon Oct 09, 2006 11:43 am
This is actually a two part question. Please pardon my ignorance in advance.
After reading the SVN book and visiting the SVN Forums, I have a couple of questions that I know the good people of this community can answer for me. First, when checking out files from a repo, the entire repo structure seems to be copied to my computer into the folder that I have selected as my local SVN folder. That being said, to test files locally that I develop locally, should I be checking them out to my SVN folder, then copying them to my local server, then back after testing, or can I make a local server folder a SVN local repo copy? Particularly this question goes to the structure of the repo, in that when I set up local projects, I typically make them http://localhost/projectname/ but if the SVN repo structure is copied to the local server then it would become something like http://localhost/projectname/trunk/ which is something that I am not fond of.
The second question goes to pushing files into production after evaulation. If there are files that are in a repo and they have been approved for production use, how do I get them from the repo to the production server? Do I simply shell in to the server and CLI cp them? Or do I check them back out and then FTP them? I am really not sure what to do here.
I apologize in advance for my lack of understanding of Subversion. I suppose I should have learned all this earlier, but I have to learn it now, so now I ask. Thanks in advance for any help.
After reading the SVN book and visiting the SVN Forums, I have a couple of questions that I know the good people of this community can answer for me. First, when checking out files from a repo, the entire repo structure seems to be copied to my computer into the folder that I have selected as my local SVN folder. That being said, to test files locally that I develop locally, should I be checking them out to my SVN folder, then copying them to my local server, then back after testing, or can I make a local server folder a SVN local repo copy? Particularly this question goes to the structure of the repo, in that when I set up local projects, I typically make them http://localhost/projectname/ but if the SVN repo structure is copied to the local server then it would become something like http://localhost/projectname/trunk/ which is something that I am not fond of.
The second question goes to pushing files into production after evaulation. If there are files that are in a repo and they have been approved for production use, how do I get them from the repo to the production server? Do I simply shell in to the server and CLI cp them? Or do I check them back out and then FTP them? I am really not sure what to do here.
I apologize in advance for my lack of understanding of Subversion. I suppose I should have learned all this earlier, but I have to learn it now, so now I ask. Thanks in advance for any help.