[英]What gems are required for Capistrano deployment?
I'm a little confused about number of gems available for Capistrano
. 对于
Capistrano
可用的宝石数量,我有些困惑。
I use Rails 4.2
application with Puma
server and I'm not sure which gems I need to add to deploy it with Capistrano 3
. 我将
Rails 4.2
应用程序与Puma
服务器一起使用,我不确定要在Capistrano 3
部署它需要添加哪些宝石。
So far I have: 到目前为止,我有:
gem 'capistrano' gem 'capistrano-rails' gem 'capistrano-bundler' gem 'capistrano3-puma' 宝石'capistrano'宝石'capistrano-rails'宝石'capistrano-bundler'宝石'capistrano3-puma'
and then: 接着:
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rails'
require 'capistrano/puma'
Some sources write that I need to include capistrano/assets
and capistrano/budler
as well, but some say that it's already done by capistrano/rails
. 一些消息来源写道,我还需要包括
capistrano/assets
和capistrano/budler
,但有些人说已经由capistrano/rails
。 From GitHub I see that some of them are auto required. 在GitHub上,我看到其中一些是自动需要的。
Moreover I'm not sure if capistrano3-puma
is required and the only gem that is available for Puma
. 此外,我不确定是否需要
capistrano3-puma
以及唯一可用于Puma
宝石。
Can you provide the minimal Capistrano
stack for Rails
deployment with puma? 您能为使用PUMA的
Rails
部署提供最少的Capistrano
堆栈吗?
This is how mine looks like, i might be helpful. 这就是我的样子,我可能会有所帮助。
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rails'
require 'capistrano/bundler'
require 'capistrano/rvm'
require 'capistrano/puma'
Installed gems 已安装的宝石
group :development do
gem 'capistrano', require: false
gem 'capistrano-rvm', require: false
gem 'capistrano-rails', require: false
gem 'capistrano-bundler', require: false
gem 'capistrano3-puma', require: false
end
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.