Help me manage changes to a website
August 7, 2009 10:33 AM
Subscribe
Whats the best way to set up version control for a website?
I work for a small building supply company, and we have a custom online store which was developed by an outside consultant. He used to provide a 'development' site where we could make changes, which we would submit through subversion, and which would be reflected when we browsed to the development site.
He is no longer providing this service. I've set up a separate hosting account with dreamhost, since they provide subversion repositories as part of their package. I can upload our code to this hosting account and it works, and I can set up a subversion repository, but I can't get subversion on a 'live' site.
Can anyone provide pointers on how to get what I'm trying to do working, or suggest an alternative approach?
posted by Reverend John to computers & internet (6 comments total)
4 users marked this as a favorite
* * * * * sh -c 'cd /var/www/your-site; svn update' 2>&1 >/tmp/svn-up-log
We do this for a few sites, and it works. But is a horrible idea. Developing locally and committing when your changes actually work is the best strategy. This is really easy to do in most cases; be it Perl, PHP, J2EE, whatever.
Also, svn likes to break in horribly strange ways. If you can manage, I would switch to git as soon as possible. It is much more reliable (and faster).
posted by jrockway at 10:38 AM on August 7