我一直在与 Capistrano 搏斗,尝试部署一个测试 Rails 应用程序几天,我想我快到了,但是当我运行时出现这个错误cap deploy
:
failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'default' -c 'cd var/rails/test_app/current/releases/20120619215252 && bundle install --gemfile var/rails/test_app/current/releases/20120619215252/Gemfile --path var/rails/test_app/current/shared/bundle --deployment --quiet --without development test'" on my.vps.ip.address
这是什么意思,我该如何解决这个问题?
谢谢!
这是我的 deploy.rb 文件,如果有帮助的话:
# RVM
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
set :rvm_ruby_string, 'default'
set :rvm_type, :system
# Bundler
require "bundler/capistrano"
# General
set :application, "test_app"
set :user, "rails"
set :deploy_to, "var/rails/test_app/current"
set :deploy_via, :copy
set :use_sudo, false
# Git
set :scm, :git
set :repository, "~/Projects/test_app/.git"
set :branch, "master"
# VPS
role :web, "my.vps.ip.address"
role :app, "my.vps.ip.address"
role :db, "my.vps.ip.address", :primary => true
role :db, "my.vps.ip.address"
# Passenger
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end