Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Playframework 在CloudFoundry上部署一个简单的Play应用程序;“放弃”;_Playframework_Cloud Foundry - Fatal编程技术网

Playframework 在CloudFoundry上部署一个简单的Play应用程序;“放弃”;

Playframework 在CloudFoundry上部署一个简单的Play应用程序;“放弃”;,playframework,cloud-foundry,Playframework,Cloud Foundry,我将按照以下步骤部署一个简单的Play应用程序。我选择了“创建简单Java应用程序”选项: 然后,我可以验证应用程序在本地机器上是否正常工作。下一步是构建分发: Simons-MacBook-Pro:helloworld-java simonmacdonald$ play dist [info] Loading project definition from /Users/simonmacdonald/Work/tmp/helloworld-java/project [info] Set cur

我将按照以下步骤部署一个简单的Play应用程序。我选择了“创建简单Java应用程序”选项:

然后,我可以验证应用程序在本地机器上是否正常工作。下一步是构建分发:

Simons-MacBook-Pro:helloworld-java simonmacdonald$ play dist
[info] Loading project definition from /Users/simonmacdonald/Work/tmp/helloworld-java/project
[info] Set current project to helloworld-java (in build file:/Users/simonmacdonald/Work/tmp/helloworld-java/)
[info] Packaging /Users/simonmacdonald/Work/tmp/helloworld-java/target/scala-2.9.1/helloworld-java_2.9.1-1.0-SNAPSHOT.jar ...
[info] Done packaging.

Your application is ready in /Users/simonmacdonald/Work/tmp/helloworld-java/dist/helloworld-java-1.0-SNAPSHOT.zip

[success] Total time: 2 s, completed 1-Feb-2013 4:35:48 PM
看起来它成功了。然后,我使用以下方法完成目标和登录:

vmc target api.cloudfoundry.com
vmc login
接下来,我将应用程序推送到服务器上:

Simons-MacBook-Pro:helloworld-java simonmacdonald$ vmc push --path=dist/helloworld-java-1.0-SNAPSHOT.zip 
Name> helloworld-java

Instances> 1

1: play
2: other
Framework> 1   

1: java
2: java7
3: other
Runtime> 1

1: 64M
2: 128M
3: 256M
4: 512M
Memory Limit> 256M

Creating helloworld-java... OK

1: helloworld-java.cloudfoundry.com
2: none
URL> helloworld-java.cloudfoundry.com

Updating helloworld-java... OK

Create services for application?> n

Bind other services to application?> n

Save configuration?> y

Saving to manifest.yml... OK
Uploading helloworld-java... OK
Using manifest file manifest.yml

Starting helloworld-java... OK
Checking helloworld-java... GAVE UP
Application failed to start.

正如您所看到的,应用程序无法启动。当我检查状态为0%时,尝试检索日志会导致vmc崩溃。有人有什么想法吗?

这可能是暂时的vmc问题。您是否尝试过卸载vmc并重新安装--pre?然后再次尝试这个过程?
Simons-MacBook-Pro:helloworld-java simonmacdonald$ vmc push --path=dist/helloworld-java-1.0-SNAPSHOT.zip 
Name> helloworld-java

Instances> 1

1: play
2: other
Framework> 1   

1: java
2: java7
3: other
Runtime> 1

1: 64M
2: 128M
3: 256M
4: 512M
Memory Limit> 256M

Creating helloworld-java... OK

1: helloworld-java.cloudfoundry.com
2: none
URL> helloworld-java.cloudfoundry.com

Updating helloworld-java... OK

Create services for application?> n

Bind other services to application?> n

Save configuration?> y

Saving to manifest.yml... OK
Uploading helloworld-java... OK
Using manifest file manifest.yml

Starting helloworld-java... OK
Checking helloworld-java... GAVE UP
Application failed to start.