0

我尝试在cloudfoundry上部署Sinatra应用程序。我收到以下错误:

$vmc push

Would you like to deploy from the current directory? [Yn]:
Application Name: myapp
Detected a Sinatra Application, is this correct? [Yn]:
Application Deployed URL [myapp.cloudfoundry.ctrls.com]:
Memory reservation (128M, 256M, 512M, 1G, 2G) [128M]:
How many instances? [1]:
Would you like to save this configuration? [yN]:
Creating Application: OK
Uploading Application:
  Checking for available resources: OK
  Packing application: OK
  Uploading (0K): OK  
Push Status: OK
Staging Application 'myapp': OK                                                
Starting Application 'myapp': .......**Error:
Application 'myapp's state is undetermined, not enough information available.**

如果我运行vmc apps,它不会显示应用程序的运行状况

$ vmc apps

+-------------+----+--------+------------------------------+----------+
| Application | #  | Health | URLS                         | Services |
+-------------+----+--------+------------------------------+----------+
| myapp       | 1  | N/A    | myapp.cloudfoundry.xxxxx.com |          |
+-------------+----+--------+------------------------------+----------+

当我手动启动应用程序时,我得到应用程序已经启动

$vmc start myapp
Application 'myapp' already started

以下是“vmc 日志”的输出

$vmc logs myapp

 Sinatra/1.2.1 has taken the stage on 26952 for production with backup from Thin
 Thin web server (v1.2.11 codename Bat-Shit Crazy)
 Maximum connections set to 1024
 Listening on 0.0.0.0:26952, CTRL+C to stop

如果我尝试重新启动应用程序,我会收到上面发布的相同错误。

请提供一些解决方法

4

1 回答 1

1

您为应用程序使用的 URL 是什么?目前,在 cloudfoundry.com 上,您不能使用自定义 URL,只能使用遵循 *.cloudfoundry.com 模式的 URL

于 2012-12-24T07:14:34.563 回答