How do I sync the files in SVN development repo and my live code?
How do I sync all the code in the SVN repository (for development purposes) with the live code I have running in /home/site/public_html/, as in overwrite whatever is in live with the new code from the SVN repo (assume the SVN 开发者_运维技巧repo location is in /usr/bin/svn/project, just for the sake of the argument, even though it's probably far from that)?
Just do an svn checkout
or svn export
in /home/site/public_html.
Personally I have a checked out copy on my web server, and the repository is on the same machine. I then have a hook so that on a commit, I perform an svn update
in the live directory, so that committing to the repository immediately makes the change live.
精彩评论