Capistrano 3

github:https://github.com/capistrano/capistrano/blob/master/README.md

# macos系统
# 安装capistrano
shell>sudo gem install capistrano
# 安装bundle
shell> sudo gem install bundle
# 进入项目根目录,生成Gemfile
shell>sudo bundle init
# 添加依赖 到Gemfile
# group :development do   
#   gem "capistrano", "~> 3.14", require: false end
#   gem "capistrano-rails", "~> 1.3", require: false
# end
shell> vim Gemfile
#
shell> bundle exec cap install STAGES=development,staging,production

bundle exec cap install

Could not find gem ‘capistrano-rails (~> 1.3)’ in any of the gem sources listed in your Gemfile.
Run

bundle install
to install missing gems.

group :development do
  gem "capistrano", "~> 3.14", require: false
end
bundle install 卡住
其原因为:访问国外镜像源

https://rubygems.org
速度较慢。 添加镜像源 shell> bundle config mirror.https://rubygems.org https://gems.ruby-china.com