ruby-on-rails – capistrano – NameError:未初始化的常量Net :: SSH :: KnownHosts :: SUPPORTED_TYPE

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – capistrano – NameError:未初始化的常量Net :: SSH :: KnownHosts :: SUPPORTED_TYPE前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图将我的Rails(3.1.3)应用程序部署到preprod env.
我使用capistrano(2.12.0)和rvm-capistrano(1.2.2).

当我调用bundle exec ssh它工作正常.
但是当我调用bundle exec cap部署时,我得到以下跟踪:

$cap deploy
    triggering start callbacks for `deploy'
  * 18:42:19 == Currently executing `multistage:ensure'
*** Defaulting to `preprod'
  * 18:42:19 == Currently executing `preprod'
  * 18:42:19 == Currently executing `deploy'
  * 18:42:19 == Currently executing `deploy:update'
 ** transaction: start
  * 18:42:19 == Currently executing `deploy:update_code'
  * 18:42:19 == Currently executing `deploy:set_prevIoUs_revision'
  * executing "cd /rails_apps/com.example.preprod/current; git rev-parse --short HEAD"
    servers: ["preprod.example.com"]
connection Failed for: preprod.example.com (NameError: uninitialized constant Net::SSH::KnownHosts::SUPPORTED_TYPE)

当然,example.com是占位符,它不是来自于capistrano配置中的错误.

有什么可能导致的想法?

我使用Ruby 1.9.3-p194的RVM.

谢谢 !

解决方法

从net-ssh 2.5.1恢复到2.4.0似乎解决了现在的问题.
原文链接:https://www.f2er.com/ruby/265423.html

猜你在找的Ruby相关文章