Deploy with rsync(or svn, git, cvs) and ignore inconsistent state during deployment?

♀尐吖头ヾ 提交于 2019-12-24 01:09:51

问题


We are currently talking about deploying a website via rsync. However, during rsyncing the application is left in an inconsistent state, as some files may already be synced while others still are left with the old version right? How do people deal with this issue? I guess the same problem exists when deploying via svn/git/cvs. Should I just close the site, rsync, and open up again? Or do people simply ignore this inconsistency problem?


回答1:


Use a two-step deployment. rsync to a test directory, ideally test it, then swap the production and test deployments around. The first time you do this, you might not have a ready-to-go test directory, but you can fix this by simply rsync-ing from production to test.



来源:https://stackoverflow.com/questions/2566099/deploy-with-rsyncor-svn-git-cvs-and-ignore-inconsistent-state-during-deploym

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!