문제

Running a centos 6 server with svn repos stored on it. To deploy updates, I'd like to copy from the relevant directory within the svn repo to the appropriate /var/www website directory. Is there a simple way to do this?

도움이 되었습니까?

해결책

Use the svn export command to do that. The subversion red book explains in detail how to do that.

When the relevant svn repo is stored under /export/svn/repo, and the part of the repository you want to copy from is /trunk/my_project/news, the whole command will be:

svn export file:///export/svn/repo/trunk/my_project/news /var/www/news
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top