Updating a site from SVN?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
klarinetking
Forum Commoner
Posts: 59
Joined: Mon Jul 24, 2006 9:43 am

Updating a site from SVN?

Post by klarinetking »

Hi,

Basically, I'm trying to find a way to update a site, hosted on SF.net, from SVN (also on SF). Basically, my current plan is something like this:

1) Cron runs 1/day. Determines if any of the site files have changed.
2) If so, somehow downloads the files that have changed.
3) Uploads them to the SF Shell server, overwriting the old ones.

Any comments? Is this feasible? And if so, can anyone point me in the right direction?

Thanks for any and all help.

klarinetking
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

Write a script (in bash/perl/php) that uses that uses shell commands to run the command line program... (#svn update, #svn --help)

Then have the cron run that script...


(this assumes that sf hosting allows you to run that command, or even has it installed on the webservers)
Post Reply