Use capifony to deploy to multiple production servers

孤者浪人 提交于 2019-12-14 02:43:27

问题


I have managed to successfully deploy my Symfony2 application to a production web server, but cannot find any documentation on how to deploy to multiple servers with one deploy command. In fact, at this stage it seems that my only option is to have multiple checkouts with separate config files. Is this really the case?


回答1:


You should take a look to http://capifony.org/

Update:

Here you can find a sample of how to set it up.

Deploying a Rails App to Multiple Servers using Capistrano - Best Practices




回答2:


I meet this issue and found the solution from Capifony, please try it Capifony: deployment in clustered machines
You just prepare your servers, and setup with Capifony

cap HOSTS="machine1.domain, machine2.domain" deploy:setup

And after that, always use HOSTS variable for your deploy command:

cap HOSTS="machine1.domain, machine2.domain" deploy

or deploy multistage command:

cap HOSTS="machine1.domain, machine2.domain" stage_name deploy



来源:https://stackoverflow.com/questions/9072916/use-capifony-to-deploy-to-multiple-production-servers

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