» home » forums

subversion for website development tags:  webdev

misterhaan
radar
subject:  no more ftp!
posted:  2:58:21 pm, apr 09, 2007

sometime last year we started using subversion (svn) at work to manage our code.  a while after i got used to that, i noticed dreamhost provides svn and set it up for my c# .net projects.

that was going decently well, and then i read about using svn for website development.  i somewhat recently started building a website for my neighborhood association, so i set it up in svn such that the live website actually updates itself from the repository whenever it’s updated.  using tortoise svn on my machine, i can just right-click the directory containing my local copy of the site, choose svn commit, and my change get checked in to the svn repository and then reflected on the site!  no need to ftp each file separately and possibly miss one or two!

i did the neighborhood site first since it had something like 5 files at the time.  yesterday i did the same for track7.  subversion at dreamhost runs as a generic apache user and not my account, which is a little bit of a problem since my account owns track7.  what i ended up doing to get around it was to have subversion request a cgi script, which then updates track7 from svn as my account.  the cgi script is set up so that it can only be accessed from the subversion server.  it’s kind of a lot of setup but it works!

i’m considering adding a link to the php source view script that will bring you to the script in subversion — that way you can copy and paste without getting the line numbers.

edited by misterhaan, 7:29:59 am, feb 20, 2008
edited by misterhaan, 7:31:43 am, feb 20, 2008

please note that the above post is likely made up in its entirety.

misterhaan
radar
subject:  svn link in php source view
posted:  12:54:03 pm, apr 10, 2007

misterhaan said:

i'm considering adding a link to the php source view script that will bring you to the script in subversion -- that way you can copy and paste without getting the line numbers.


i went ahead and did this -- another nice thing about it is you can right-click the link and choose 'save link as' to save the php file straight out of the subversion repository, which should be exactly what's on the site here.

please note that the above post is likely made up in its entirety.

add a reply

posting asanonymous (log in or register)

nearby pages

users online

5 guests

user list

statistics

hits today260
registered users184
forum posts408
comments153

powered by

  • dreamhost
  • linux
  • apache
  • php
  • mysql