开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜