多次部署同一个应用程序

时间:2013-03-12 03:29:20

标签: cloudfoundry

我试图多次部署相同的应用程序(相同的WAR文件)(作为多个CloudFoundry应用程序)。我只想添加实例,但我想为两个不同的应用程序提供不同的环境变量。我能够vmc推送第一个副本罚款。它按预期启动和运行。但是,第二次尝试部署应用程序时,收到以下错误:

Uploading app_name... FAILED
Upload failed. Try again with 'vmc push'.
TypeError: can't convert nil into String
For more information, see ~/.vmc/crash

当我按指定查看崩溃文件时,它提供以下堆栈跟踪:

Time of crash:
  2013-03-11 22:19:41 -0500

TypeError: can't convert nil into String

multipart-post-1.1.5/lib/composite_io.rb:84:in `initialize'
multipart-post-1.1.5/lib/composite_io.rb:84:in `open'
multipart-post-1.1.5/lib/composite_io.rb:84:in `initialize'
cfoundry-0.5.2/lib/cfoundry/v1/base.rb:57:in `new'
cfoundry-0.5.2/lib/cfoundry/v1/base.rb:57:in `upload_app'
cfoundry-0.5.2/lib/cfoundry/upload_helpers.rb:48:in `upload'
vmc-0.5.0/lib/vmc/cli/app/push.rb:86:in `block in upload_app'
interact-0.5.2/lib/interact/progress.rb:98:in `with_progress'
vmc-0.5.0/lib/vmc/cli/app/push.rb:85:in `upload_app'
vmc-0.5.0/lib/vmc/cli/app/push.rb:53:in `sync_app'
vmc-0.5.0/lib/vmc/cli/app/push.rb:46:in `push'
mothership-0.5.1/lib/mothership/base.rb:66:in `run'
...

我错过了什么?任何帮助表示赞赏。提前谢谢!

1 个答案:

答案 0 :(得分:3)

这是一个vmc问题,最近修复了。详情请见https://github.com/cloudfoundry/vmc/issues/65