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
アプリを再起動しようとすると、上記と同じエラーが表示されます。
いくつかの回避策を提供してください