[eluser]Kryptonian[/eluser]
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 ;-)
[eluser]webthink[/eluser]
Why not just 'svn update' on the server? Assuming you've done svn checkout already
[eluser]Seppo[/eluser]
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,
[eluser]webthink[/eluser]
@seppo
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.
[eluser]webthink[/eluser]
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.
[eluser]sikkle[/eluser]
lot of people will prefer using a tool to do deployement, one of the greatest so far is capistrano.
good luck.