运行部署时出现以下错误:
cap aborted!
LoadError: cannot load such file -- capifony_symfony2
C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/xampp/htdocs/surveys6/Capfile:3:in `<top (required)>'
C:/Ruby22/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
C:/Ruby22/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
C:/Ruby22/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
C:/Ruby22/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
C:/Ruby22/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
C:/Ruby22/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
C:/Ruby22/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/capistrano-3.11.0/lib/capistrano/application.rb:14:in `run'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/capistrano-3.11.0/bin/cap:3:in `<top (required)>'
C:/Ruby22/bin/cap:23:in `load'
C:/Ruby22/bin/cap:23:in `<main>'
我正在使用: Capistrano版本:3.11.0(Rake版本:10.4.2) Symfony版本2.7.49
任何人都可以建议,我觉得它可能与这里的最高答案有关?。Rails 4, Capistrano 3.0.0, cannot load such file -- deploy
答案 0 :(得分:0)
可能是调整旧版软件的情况。我卸载了Capistrano 3.11,并安装了Capistrano 2.15.9才能正常工作。这个版本的Capistrano可与我较旧的Symfony版本一起使用。