简体   繁体   English

如何在Bluemix上启动Scala Play应用程序?

[英]How to start Scala Play application on Bluemix?

I have basic Scala application on Play framework and I try to deploy it to IBM Bluemix. 我在Play框架上有基本的Scala应用程序,我尝试将其部署到IBM Bluemix。 During deployment it shows next: 部署期间显示下一个:

an instance of the app crashed: failed to accept connections within health check timeout
exit status: -1, CRASHED

My manifest.yml 我的manifest.yml

applications:
- path: ./target/universal/scala-bluemix-1.0-SNAPSHOT.zip  
memory: 512M
instances: 1
domain: eu-gb.mybluemix.net
name: TestApp1WithTotalyUniqueName
host: testapp1withtotalyuniquename
disk_quota: 1024M

I have already checked this link: http://blog.ibmjstart.net/2015/10/27/a-play-scala-server-running-on-ibm-bluemix/ Any ideas how to fix it? 我已经检查了这个链接: http//blog.ibmjstart.net/2015/10/27/a-play-scala-server-running-on-ibm-bluemix/任何想法如何修复它?

Output from console: 控制台输出:

2015-11-03T18:30:50.70+0200 [STG/0]      OUT -----> Liberty buildpack is done creating the droplet
2015-11-03T18:30:51.31+0200 [STG/0]      ERR 
2015-11-03T18:31:00.89+0200 [STG/115]    OUT -----> Uploading droplet (91M)
2015-11-03T18:31:11.91+0200 [DEA/115]    OUT Starting app instance (index 0) with guid b634d704-85f2-4e42-b559-985de67c90ae
2015-11-03T18:31:30.09+0200 [App/0]      OUT [info] - play.api.Play - Application started (Prod)
2015-11-03T18:31:30.23+0200 [App/0]      OUT [info] - play.core.server.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
2015-11-03T18:32:22.04+0200 [DEA/115]    ERR Instance (index 0) failed to start accepting connections
2015-11-03T18:32:22.05+0200 [API/7]      OUT App instance exited with guid b634d704-85f2-4e42-b559-985de67c90ae payload: {"cc_partition"=>"default", "droplet"=>"b634d704-85f2-4e42-b559-985de67c90ae", "version"=>"1b3e8d86-501a-4679-9104-9a9dea063ccd", "instance"=>"19d1570c9865486985c6f159a90233dd", "index"=>0, "reason"=>"CRASHED", "exit_status"=>-1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1446568342}
2015-11-03T18:32:22.07+0200 [App/0]      ERR 
2015-11-03T18:32:52.39+0200 [DEA/112]    OUT Starting app instance (index 0) with guid b634d704-85f2-4e42-b559-985de67c90ae
2015-11-03T18:33:04.31+0200 [App/0]      OUT [info] - play.api.Play - Application started (Prod)
2015-11-03T18:33:04.43+0200 [App/0]      OUT [info] - play.core.server.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

而且manifest.yml中缺少这一行:

buildpack: java_buildpack

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM