如何“锁定”进行 (phing) 部署时的实时站点
在 http://www.slideshare.net/eljefe/automated-deployment-with -phing 在幻灯片 15 中,他们正在讨论部署时“锁定实时站点”。
我们在 SAAS 应用程序中运行多个网上商店,用户可能会在其中添加产品、购买产品并在线支付产品费用,等等......
在部署时,我们希望尽可能干净地执行此操作,这样就不会付款或订单或其他关键数据将会丢失。
我们使用 phing(令人惊叹的工具!)设置了一个部署场景,但我们缺少一个关键步骤,即部署时的“锁定实时站点”。
有什么可能的方法可以锁定实时站点并在部署后使其恢复在线状态?
On http://www.slideshare.net/eljefe/automated-deployment-with-phing in slide 15 they are talking about "locking the live site" when doing deployment.
We are running multiple webshops in a SAAS application where it is possible that users are adding products, buying products and paying for products online, and so on...
When deploying we want to do this as clean as possible, so that not payments or orders or other critical data will be lost.
We have a deployment scenario set up using phing (amazing tool!) but we are missing one crucial step being the "locking of the live site" while deploying.
What is a possible way to lock a live site and bring it back online after deploying?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建一个任务来创建(或部署)维护页面 (HTML) 和随附的 .htaccess 文件以将所有请求重定向到该页面。然后进行其余的部署。最后将.htaccess 文件替换为常规版本即可。
这是 Packt 的专家 PHP 5 工具一书中的一个很好的示例 。
You could create a task that creates (or deploys) a maintenance page (HTML) and the accompanying .htaccess file to redirect all requests to it. Then do the rest of your deployment. Finally replace the .htaccess file with the regular version and you are done.
This is a nice example in the book Expert PHP 5 tools from packt.