• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to sync svn repository to my public_html folder?

Hello Guys,

How can I update my live server when I already have a SVN repository? What is the svn syntax for the sync of repository to the live server folder (public_html)

Thanks a lot ;-)

Why not just 'svn update' on the server? Assuming you've done svn checkout already

Hi webthink, thanks for the reply. Ok i will just checkout my repository to the public_html folder then svn update. Smile

It would be better "svn export" instead of checking out the code in the live version... This way you won't have the .svn folders created on your server, which will look ugly,

The only issue with that is that if you have any folders in your repo whos purpose is to house files written by the webserver (cache etc) then it becomes more work to preserve their contents when updating. You can't simply rm -r the whole directory and then write over it with the exported files. svn update would preserve those files. I can see the merit in both approaches though.

Well... a better way to upload changes, as I see it, is actually downloading the live site, comparing to your svn version, looking for the difference (using meld, kdiff) and then uploading...
That's the way I'm working right now...

rsync has options that would allow you to skip certain folders. You could export locally and then rsync to your server without downloading anything. That could work too.

lot of people will prefer using a tool to do deployement, one of the greatest so far is capistrano.

good luck.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.