使用rsync(或svn,git,cvs)部署并在部署期间忽略不一致的状态? [英] Deploy with rsync(or svn, git, cvs) and ignore inconsistent state during deployment?

查看:170
本文介绍了使用rsync(或svn,git,cvs)部署并在部署期间忽略不一致的状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在谈论通过rsync部署网站。然而,在rsyncing期间,应用程序处于不一致的状态,因为某些文件可能已被同步,而其他文件仍然保留旧版本?人们如何处理这个问题?我猜,通过svn / git / cvs进行部署时,会出现同样的问题。我应该关闭网站,rsync,再次打开?或者人们只是忽略这种不一致的问题?

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?

推荐答案

使用两步部署。 rsync到测试目录,最好是测试它,然后交换生产和测试部署。第一次这样做时,您可能没有即时的测试目录,但您可以通过简单的rsync-ing从生产到测试来解决这个问题。

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.

这篇关于使用rsync(或svn,git,cvs)部署并在部署期间忽略不一致的状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆