【问题标题】:Error while deploying rails app at cloudfoundry with redis?使用redis在cloudfoundry部署rails应用程序时出错?
【发布时间】:2013-02-28 15:28:27
【问题描述】:

我在为我的应用创建服务时遇到此错误 为应用程序创建服务?> y 创建服务 redis-70a08... OK NoMethodError:nil 的未定义方法“名称”:NilClass 有关详细信息,请参阅 ~/.vmc/crash

NoMethodError: undefined method name' for nil:NilClass 
vmc-0.4.7/lib/vmc/cli/service/bind.rb:18:in bind_service' 
mothership-0.3.5/lib/mothership/base.rb:61:in send' 
mothership-0.3.5/lib/mothership/base.rb:61:in run' 
mothership-0.3.5/lib/mothership/command.rb:68:in `invoke'

【问题讨论】:

  • 我收到此错误 NoMethodError: undefined method name' for nil:NilClass vmc-0.4.7/lib/vmc/cli/service/bind.rb:18:in bind_service' Mothership-0.3.5/lib/mothership/base.rb:61:in send' mothership-0.3.5/lib/mothership/base.rb:61:in run' Mothership-0.3.5/lib /mothership/command.rb:68:in `invoke'
  • 您运行的是 ruby​​ 1.9 还是 1.8?是否可以卸载所有 vmc 及其依赖项并重新安装?

标签: ruby-on-rails redis cloud-foundry


【解决方案1】:

您可以尝试更新版本的 VMC,gem install vmc --pre

我在 0.4.7 中遇到了同样的错误,但 0.5.0 对我来说很好。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-30
    • 1970-01-01
    • 2015-04-23
    相关资源
    最近更新 更多