在cloudfoundry上部署Sinatra App时出错

时间:2012-12-24 06:41:06

标签: cloudfoundry

我尝试在 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 logs”的输出

$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

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

请提供一些解决方法

1 个答案:

答案 0 :(得分:1)

您使用的是什么网址?目前,在cloudfoundry.com上,您无法使用自定义网址,只能使用遵循模式的网址* .cloudfoundry.com