Subversion for webmasters

Subversion, the version control system, seems to offer many benefits to teams working in collaboration on web projects.

However, when the excitement of using a ‘time machine’ to manage your web scripts dies down you are faced with the prospect of putting it into practice and a number of questions arise.

Where’s the instruction book for Webmaster’s who use Subversion?

Because Subversion is not focused on controlling any specific type of file or project - the Subversion instruction book does not really touch upon using Subversion to manage websites.

There have probably been many threads discussing the topic of using Subversion to run websites / multiple website - but it can sometimes take a lot of effort to dig them out.

Here are some resources that touch upon this topic - they may be pieced together to get some idea of how it is possible to use Subversion for managing website projects.

(Please add more weblinks and references to books to help us webmasters get the most out of Subversion) :

Perhaps I’m asking for too much - am I wanting to have my “cake and eat it” by being reluctant to change my working practices AND expecting the benefits of using version control. Things I’m pondering:

  • Do I have to start treating my websites more like traditional software projects to fit in to the way of Subversion?
    Currently, I don’t think of my websites as projects that have regular releases. They are more of a progression.
  • How can I manage database content and schemas under Subversion?
  • What will my workflow be like?
    After a change to a piece of HTML on my local copy. Instead of just uploading that to the server, should I update my repository, then check out that repository to the web server - (where the web server is a working copy in itself). If that is the case:

    • How can this be done?
    • Do I have to login via SSH on the server and do an svn check out from there?
    • Could I set up a bash script on the server that is triggered by an online admin’s control panel action.
    • Am I missing something here?
    • What about setting the chmods of special files and folders.

    Or should I go for a much simpler solution and treat the repository like a backup system, which never outputs to the server and just records the project as the svn commits occur.

One Response to “Subversion for webmasters”

  1. Matt Says:

    There is a new extension for SVN - DW integration hosted here: http://code.google.com/p/subweaver/

    Open source too! So you don’t have to worry about it going away.

Leave a Reply