我正在尝试使用 Capistrano 部署我的 Rails 应用程序。
我的 deploy.rb 文件如下所示:
require "bundler/capistrano"
server "xx.xx.xxx.xxx", :web, :db, :primary => true
set :application, "myApp"
set :user, "ubuntu"
set :deploy_to, "/home/#{user}/apps/#{application}"
#set :deploy_via, :remote_cache
set :migrate_target, :current
set :keep_releases, 3
set :scm, "git"
set :repository, "git@github.com:name/#{application}.git"
set :branch, "master"
set :use_sudo, false
default_run_options[:pty] = true
# default_run_options[:shell] = '/bin/bash'
ssh_options[:forward_agent] = true
ssh_options[:keys] = ["#{ENV['HOME']}/.ec2/keypair.pem"]
现在每当我尝试做
cap deploy:cold
我收到如下错误:
https://gist.github.com/c54933142b900f9f93b9
任何帮助,将不胜感激 。