当尝试'vmc push hello‘这个sinatra示例应用程序作为部署测试时,我得到了:
Time of crash:
Sun Dec 02 14:11:52 -0800 2012
NoMethodError: undefined method `[]' for nil:NilClass
manifests-vmc-plugin-0.4.14/lib/manifests-vmc-plugin.rb:76:in `app_by_tag'
manifests-vmc-plugin-0.4.14/lib/manifests-vmc-plugin.rb:81:in `find_apps'
manifests-vmc-plugin-0.4.14/lib/manifests-vmc-plugin/plugin.rb:102
mothership-0.3.0/lib/mothership/command.rb:78:in `instance_exec'
mothership-0.3.0/lib/mothership/command.rb:78:in `invoke'
mothership-0.3.0/lib/mothership/command.rb:82:in `instance_exec'
mothership-0.3.0/lib/mothership/command.rb:82:in `invoke'
mothership-0.3.0/lib/mothership/base.rb:50:in `execute'
vmc-0.4.2/lib/vmc/cli.rb:106:in `execute'
mothership-0.3.0/lib/mothership.rb:42:in `start'
vmc-0.4.2/bin/vmc:11
/usr/bin/vmc:19:in `load'
/usr/bin/vmc:19 当尝试使用命令'vmc push hello‘和'vmc push’将vmc部署到'api.cloudfoundry.com‘和微云时,就会发生这种情况
发布于 2012-12-07 02:38:10
运行gem update vmc为我解决了这个问题。对=> manifests-vmc-plugin-0.4.17的更新
发布于 2012-12-03 18:23:20
manifests-vmc-plugin (0.4.14)有一个问题,你可以做几件事中的一件;
如果您已经安装了VMC 0.4.1和manifests- VMC -
如果您卸载所有版本的VMC和manifests- vmc -plugin,您可以重新安装vmc 0.4.1,然后卸载manifests-vmc-plugin 0.4.14并重新安装manifests-vmc-plugin 0.4.13这应该会留下一个与旧的旧版本相反的“新”vmc的工作版本。
希望这一切都是有意义的。我还应该补充说,这个问题将在接下来的24小时内得到解决。
发布于 2012-12-03 17:54:07
您可以将vmc gem版本降级到以前的版本吗?sudo gem卸载vmc,为了安全起见,sudo gem安装vmc working_version
https://stackoverflow.com/questions/13674561
复制相似问题