Currently I have subversion set up so that when I make changes in Eclipse PDT, I can commit the changes and they will be saved in /home/administrator/Project File. This file has the /branches /tags and /trunk directories recommended by subversion. I have no problem properly uploading files to the repository, but do I have to ‘mv’ the files in Linux to /var/www in order to make them live on the server? Is there an automatic process to do this that I am missing? I’m assuming we don’t want to make the /var/www directory (which is live on the machine) the repository, but I don’t know.
Share
You can do an
svn exportinto your www directory. That will give you a ‘clean’ version of your repo, without the .svn directories.Edit: adding in some good ideas from the comments…
Some options for when you want to update your exported copy:
svn export --force /home/...../ MyProjectthis will stop it complaining about overwriting the existing files. This method will mean that if you delete a file from your repository, it’ll still remain in your www folder.svn export /home/..../ MyProject_20081105and then create a symlink to that folder:
ln -s MyProject_20081105 MyProjectJust delete and recreate the symlink each time you ‘release’. In this case, the export directory doesn’t need to be in the
wwwfolder at all.