能不能将play1.2.5直接部署在cloudfoundry上?

volador 发布于 2012/11/07 21:47
阅读 292
收藏 0

@红薯 你好,想跟你请教个问题:

红薯大哥,请教你个关于cloudfoundry的问题,怎样能将play1.2.5的应用直接部署到cloudfoundry上呢?除了将应用打包成war形式,感觉这样部署很不方便啊。今天尝试了将整个play应用当作一个独立应用推上去,靠命令去独立启动,但跑起来的时候总是出现下面的错误,实在不清楚是什么原因,希望红薯大哥能给点建议,谢谢。

feiyu@ubuntu :~/desktop/play-1.2.5$ ls

documentation  framework  hello  modules  play  python  resources  support

feiyu@ubuntu :~/desktop/play-1.2.5$ vmc push playapp

Would you like to deploy from the current directory? [Yn]: y

Detected a Standalone Application, is this correct? [Yn]: y

1: java

2: java7

3: node

4: node06

5: node08

6: ruby18

7: ruby19

Select Runtime [java]: 1

Selected java

Start Command: ./play run hello

Application Deployed URL [None]: helloplayapp.cloudfoundry.com

Memory reservation (128M, 256M, 512M, 1G, 2G) [512M]:

How many instances? [1]:

Create services to bind to 'playapp'? [yN]: n

Would you like to save this configuration? [yN]: n

Creating Application: OK

Uploading Application:

 Checking for available resources: OK

 Processing resources: OK

 Packing application: OK

 Uploading (84K): OK  

Push Status: OK

Staging Application 'playapp': OK                                              

Starting Application 'playapp': .

Error: Application [playapp] failed to start, logs information below.


====> /logs/stderr.log <====


Could not create the Java virtual machine.


====> /logs/stdout.log <====


Error occurred during initialization of VM

Could not reserve enough space for object heap

~        _            _

~  _ __ | | __ _ _  _| |

~ | '_ \| |/ _' | || |_|

~ |  __/|_|\____|\__ (_)

~ |_|            |__/  

~

~ play! 1.2.5, http://www.playframework.org

~

~ Ctrl+C to stop

~



Delete the application? [Yn]:

返回顶部
顶部