对于需要扩展的应用程序,需要在不同的时间部署应用程序的多个实例。
staging.theapp.tld (for admin testing)
sandbox.theapp.tld (for user testing, actually in development mode for better logging)
theapp.tld (actual production mode. To be run with and without 'www.' prefix)部署需要通过以下三种方式之一进行:
仅使用
生产模式将有多个实例:一个主服务器和任意数量的VPS从服务器--比如两个。因此,
master.theapp.tld
vps1.theapp.tld
vps1.theapp.tld在底层,postgresql正在运行主从进程,用于将数据更新到VPSes。
考虑到涉及的变量数量,以及缺乏设置多个服务器的经验,搞砸作品的可能性变得呈指数级增长……该应用的相关组件包括:
gem 'capistrano', '2.14.2'
gem 'rvm-capistrano', '1.2.7'
gem 'pg', '0.17.1'capistrano应该如何配置?
发布于 2014-10-07 05:53:49
这是一个非常宽泛的问题。我只能提出几点建议,而不是提供具体的答案:
capistrano3。released.https://stackoverflow.com/questions/26214835
复制相似问题