내 서버에서 호스팅되는 리포와 함께 VCS에서 CI 2.0 프로젝트를 보유하고 있습니다. 현재 나는 아래에 게시 한 bash 스크립트가 있습니다. 소스 코드를 체크 아웃하고 일부 파일을 이동 한 다음 서버를 다시 시작하여 업데이트 된 웹 사이트를 반영합니다.Codeigniter 배포 프로세스
현재 방법이 잘못 되었습니까? 다른 사람이 내가 사용할 수있는 다른 도구에 대한 다른 권장 사항이나 더 나은 방법을 가지고 있습니까? 감사!
# Stop apache while we update the server, and export our svn repo to a tmp dir
sudo /etc/init.d/apache2 stop
svn export file:///home/steve/repository/example/trunk /home/steve/example_dev/
# Prepare the public_html folder for the update, and remove the tmp directory
rm -rf /home/steve/public_html/example.com/public/
mv /home/steve/example_dev/ /home/steve/public_html/example.com/public/
rm -rf /home/steve/public_html/example.com/public/license.txt
rm -rf /home/steve/public_html/example.com/public/user_guide
rm -rf /home/steve/example_dev
# Restart apache
sudo /etc/init.d/apache2 start
http://docs.fabfile.org/ko/1.2.2/index.html을 사용합니다. – Vamsi