title: Deployment process for site maintained by 2 companies
body: <p>I work for an agency that has been responsible for maintaining a client’s .net 3.5 website for a number of years along with another agency. Work is farmed out by the client to both agencies on a pretty much ad-hoc basis.</p>
  
  <p>The site is quite old and has a structure and deployment process to match. The site is setup that developers have local copies of the sites. There is a staging environment, where client feedback and approval happens, followed by the live environment. There are a number of scenarios where work from one agency will be on the staging environment awaiting approval, and changes from the other agency need to go through staging, approval and deployed to live without the original changes being affected. Most of the time we get away with it but it’s far from ideal as not all conflicts can be resolved.</p>
  
  <p>Up until recently we had still been on Sourcesafe but have moved over to Subversion and are running into many more scenarios where work is overwritten. This obviously isn’t a fault with subversion, rather that the locking of projects and files in Sourcesafe served as a good indicator to developers from both agencies that someone was working on that project or file. The process previously was that you checked out a file from sourcesafe and kept it checked out until changes went live (acknowledge that this is a rubbish process hence the desire to move away from sourcesafe and such a model)</p>
  
  <p>The trouble is that even though we know that the way we do it now is bad, I’m at a bit of a loss as to how to restructure the overall site and deployment process to make it “better”. Some ideas we’ve pondered are: </p>
  
  <ul>
  <li>Separate dev, test and live branches in subversion so we need to commit and build the appropriate branch before deploying (not really sure how to make that work)</li>
  <li>Single repository for both agencies but a separate staging environment for each. Staging environment could then reflect the changes assigned to each agency</li>
  <li>A separate instance of the staging site for each branch</li>
  </ul>
  
  <p>Any suggestions of next steps or examples of similar situations and solutions from the SO community would be greatly appreciated!</p>
  
  <p>Thanks</p>
  
  <p>Joel</p>