We are trying to automate the build process on our intermediate servers, but at the same time we got confused, albeit rather insignificant. We use the publishing function that is built into VS2010, which switches to Subversion, and then a third-party application (Beanstalk) automatically pulls the updated files and FTP files to the intermediate server.
The problem we are facing is that we have only the following options:
- (Less than 2 evil). If we decide to use Replace Compliance Files with Local Copies, this works fine, with one exception: this option does not delete files deleted from the project. This will lead to unwanted and / or security problems for unkempt files from the old days.
- If we decide to use “Delete all existing files before publishing”, this will delete the entire folder structure, including the hidden .SVN folders that Subversion uses to track updates, etc. This seems like the best solution in terms of accuracy, but it really destroys the local SVN environment, which is the average person for this automation.
My question is: is there an easy work for this or a completely different deployment option that we ignore (we don’t want to publish directly to the server from VS, since we want to track who / what / deployment)? The only thing I came across was to delete the contents of the file manually before publishing, leaving the folder structure intact, and then expanding it using "Replace the corresponding files with local copies." Unfortunately, this lends a whole new meaning to the word “automation”.
Any ideas on how best to do this?
Keith
source share