Reputation: 2445
I started using subversion for one of my projects and it would be absolutely amazing if I could just export the latest version from the repository on my production server by for example running a php or perl script.
The production site is hosted with a shared hosting provider who doesn't allow shell access or for example the php exec()
function. (I don't know much about perl; I only know that my hoster allows perl and custom cgi scripts).
Is it possible to perform a SVN export in this environment?
Upvotes: 1
Views: 1646
Reputation: 1204
Have a look on this:
http://www.randomsequence.com/articles/svn-backup-script/
Of course, you still need exec for that, but as said it won't be difficult to code something in PHP that runs an http call to your svn server.
Or else, something like:
palaniraja.wordpress.com/2008/09/20/svn-export-only-updated-files-between-2-revisions/
Cheers!
Upvotes: 0
Reputation: 5437
As far as I know there is no SVN client fully written in PHP or Perl. SO without exec you're out of luck.
Workarounds:
Upvotes: 1
Reputation: 6396
SVN supports access over WebDAV (i.e. HTTPS). This means for simple read access you don't actually need an SVN client to access an SVN repository. You can even use a web browser, or in your case any PHP function that accepts a URL as its argument. SVN has to be set up on the server side to work with apache, for more info check out the svn red book
Upvotes: 0