1
我正在嘗試使用Capistrano部署我的Rails應用程序。使用Rails設置我的Capistrano時遇到問題
我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, "[email protected]: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
任何幫助,將不勝感激。
你是否首先執行'cap deploy:setup'? – iltempo