将简单的Play应用程序部署到CloudFoundry只是“GAVE UP”

时间:2013-02-01 21:44:50

标签: playframework cloudfoundry

我正在关注instructions on the CloudFoundry blog部署一个简单的Play应用程序。我选择了“创建一个简单的Java应用程序”选项:

Simons-MacBook-Pro:tmp simonmacdonald$ play new helloworld-java
       _            _ 
 _ __ | | __ _ _  _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__ (_)
|_|            |__/ 

play! 2.0.4, http://www.playframework.org

The new application will be created in /Users/simonmacdonald/Work/tmp/helloworld-java

What is the application name? 
> helloworld-java

Which template do you want to use for this new application? 

  1 - Create a simple Scala application
  2 - Create a simple Java application
  3 - Create an empty project

> 2

OK, application helloworld-java is created.

Have fun!

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

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崩溃。有人有什么想法吗?

0 个答案:

没有答案