version-control

Best Practices for versioning web site?


What's are the best practices for versioning web sites?

(RIP, Closed after 16 years, 3 months.)


Solution

  • Firstly you can - and should - use a revision control system, most will handle binary files although unlike text files you can't merge two different set of changes so you may want to set the system up to lock these files whilst they are being changed (assuming that that's not the default mode of operation for you rcs in the first place).

    Where things get a bit more interesting for Websites is managing those files that are required for the site but don't actually form part of the site - the most obvious example being something like .psd files from which web graphics are produced but which don't get deployed.

    We therefore have a tree for each site which has two folders: assets and site. Assets are things that aren't in the site, and site is - well the site.

    What you have to watch with this is that designers tend to have their own "systems" for "versioning" graphic files (count the layers in the PSD). You don't need necessarily to stop them doing this but you do need to ensure that they commit each change too.

    Other questions?

    Deployment. We're still working on this one (-: But we're getting better (I'm happier now with what we do!)

    Murph