我有一个CI 2.0项目在VCS瓦特/回购托管在我的服务器上。目前我有一个bash脚本,我已经在下面发布。它检出源代码,移动一些文件,并重新启动服务器以反映更新的网站。Codeigniter部署过程
w /我现在的方法有什么问题吗?还有其他人对我可以使用的其他工具有什么其他建议吗?或者有其他方法可以做得更好?谢谢!
# 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/en/1.2.2/index.html – Vamsi