Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use FTP to update my website from a Subversion repository?

Tags:

svn

I spent some time looking for an efficient way to update my website from a svn repository, but all I can find is to "svn update" directly from the web server, or use a pre/post-commit hook.

Since I don't have ssh access to my web server, I can't really use "svn update", so I tested a pre/post-commit hook (svn2web) which was practical, but not reliable enough. So I look over the internet and found Springloops, which is very satisfying because it has a FTP deploy feature that allows me to update my website directly from the svn repository.

Unfortunately, it isn't free, and I like to have full control of my repository. So my question is:

Is there any tool or script that allows me to update my website over FTP from my Subversion repository ?

Just like they do at Springloops (or Beanstalk).

Thank you very much for your help, I'm out of ideas...

like image 354
damienfir Avatar asked Feb 27 '09 07:02

damienfir


People also ask

How do I run SVN update?

Right-click on docs/developerInfo. txt and select "SVN Update". See if the new changes were added to the file. Commit your changes.

What is SVN update command?

The SVN update Command. The svn update command lets you refresh your locally checked out repository with any changes in the repository HEAD on the server. It also tells you what has been changed, added, deleted. If a change has been made to a file you have also changed locally, svn will try to merge those changes.

Which command is used to update to the latest version in SVN?

Examples. Use the svn upgrade command to upgrade the working copy to the most recent metadata format supported by your version of Subversion.

How does SVN update work?

svn update brings changes from the repository into your working copy. If no revision is given, it brings your working copy up to date with the HEAD revision. Otherwise, it synchronizes the working copy to the revision given by the --revision ( -r ) option.


1 Answers

Take a look at Capistrano. It's extremely powerful and can do a full checkout, zip it up, and push it to the server over ftp using the new "copy" deployment strategy:

set :deploy_via, :copy 

See http://www.capify.org/upgrade/whats-new for more info.

like image 149
Abdullah Jibaly Avatar answered Oct 25 '22 18:10

Abdullah Jibaly