Capistrano在上限阶段部署失败
Don't know how to build task 'deploy:updated' /Users/me/.rvm/gems/ruby-1.9.3-p125@theapp/gems/capistrano-3.1.0/lib/capistrano/dsl/task_enhancements.rb:5:in `before'
Capfile需要按顺序:require’capistrano / bundler’require’capistrano / rails’require’capistrano / rvm’
set :rvm_type,:user set :rvm_ruby_version,'ruby-1.9.3-p484' require 'capistrano/setup' require 'capistrano/deploy'
我意识到rvm之间的本地版本和本地版本之间的版本号是484.但我不知道这是什么原因.
/deploy/staging.rb状态
set :stage,:staging role :app,%w{theapp.domain.tld} role :web,%w{theapp.domain.tld} role :db,%w{theapp.domain.tld} server '4.44.444.44',user: 'me',roles: %w{web app}
解决方法
那么是的,顺序必须被尊重.以下克服堵塞:
require 'capistrano/setup' require 'capistrano/deploy' require 'capistrano/bundler' require 'capistrano/rails' require 'capistrano/rvm'
创建capfile时提供的默认设置暗示了这一点,但是您真正决定以自己的方式做…