我正在将我的应用程序从 capistrano v2 升级到 v3。当我运行设置任务时,会引发以下错误
$cap 开发部署:设置
cap aborted!
Don't know how to build task 'deploy:setup'
/home/user/.rvm/gems/ruby-2.0.0-p353@user-ui/gems/capistrano-3.0.1/lib/capistrano/application.rb:12:in `run'
/home/user/.rvm/gems/ruby-2.0.0-p353@user-ui/gems/capistrano-3.0.1/bin/cap:3:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.0.0-p353@user-ui/bin/cap:23:in `load'
/home/user/.rvm/gems/ruby-2.0.0-p353@user-ui/bin/cap:23:in `<main>'
/home/user/.rvm/gems/ruby-2.0.0-p353@user-ui/bin/ruby_executable_hooks:15:in `eval'
/home/user/.rvm/gems/ruby-2.0.0-p353@user-ui/bin/ruby_executable_hooks:15:in `<main
/application.rb(指出第 12 行是超级的)
def run
Rake.application = self
super
end
头文件
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rvm'
require 'capistrano/bundler'
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
$ 宝石清单 capistrano
*当地宝石*
卡皮斯特拉诺 (3.0.1)
capistrano 捆绑器 (1.1.1)
capistrano-rails (1.0.0)
capistrano-rvm (0.0.3)
capistrano-unicorn (0.2.0)。
如果我的错误被指出,任何帮助将不胜感激。谢谢。