当前位置: 首页 > 知识库问答 >
问题:

播放2.2.1应用程序未在heroku上启动

赵炯
2023-03-14

我已经部署了play 2.2.1 helloworld(github链接)应用程序,但它不起作用。这是helloworld应用程序的链接。应用程序在本地运行良好。

程序文件

web: play run--http.port=$PORT$PLAY_OPTS

插件。sbt公司

对数电平:=电平。警告

解析器="类型安全存储库"位于"http://repo.typesafe.com/typesafe/releases/"

addSbtPlugin(“com.typesafe.play”%”sbt插件“%”“2.2.1”)

system.properties

java.runtime.version=1.7

build.properties

sbt。版本=0.13.0

heroku日志

Enable Logplex by mailtovikrantpro@gmail.com

Release v2 created by mailtovikrantpro@gmail.com

]: Slug compilation started

Set PATH, JAVA_OPTS, SBT_OPTS, REPO config vars by mailtovikrantpro@gmail.com

Release v5 created by mailtovikrantpro@gmail.com

Scale to web=1 by mailtovikrantpro@gmail.com

Release v4 created by mailtovikrantpro@gmail.com

Release v3 created by mailtovikrantpro@gmail.com

Attach HEROKU_POSTGRESQL_ROSE resource by mailtovikrantpro@gmail.com

Set DATABASE_URL config vars by mailtovikrantpro@gmail.com

]: Slug compilation finished

Deploy 4ce7ade by mailtovikrantpro@gmail.com

Release v6 created by mailtovikrantpro@gmail.com

ash: play: command not found

: Starting process with command `play run --http.port=17894 $PLAY_OPTS`

: State changed from starting to crashed

: State changed from crashed to starting

: Process exited with status 127

ash: play: command not found

]: at=error code=H10 desc="App crashed" method=GET path=/ host=serene-plateau-2664.herokuapp.com request_id=e2a4c9df-03f2-4559-8c16-b3d93676ce3a fwd="61.3.30.27" dyno= connect= service= status=503 bytes=

: State changed from starting to crashed

]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=serene-plateau-2664.herokuapp.com request_id=8325f59d-d472-457a-9cbe-53b6a0586088 fwd="61.3.30.27" dyno= connect= service= status=503 bytes=

: Starting process with command `play run --http.port=13540 $PLAY_OPTS`

: Process exited with status 127

]: at=error code=H10 desc="App crashed" method=GET path=/ host=serene-plateau-2664.herokuapp.com request_id=d5ebf2fc-d835-4547-98fa-1deda63cf4ab fwd="61.3.30.27" dyno= connect= service= status=503 bytes=

]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=serene-plateau-2664.herokuapp.com request_id=629429d2-a9a3-4a2b-8b1e-37902dac4e35 fwd="61.3.30.27" dyno= connect= service= status=503 bytes=

]: at=error code=H10 desc="App crashed" method=GET path=/ host=serene-plateau-2664.herokuapp.com request_id=80d7e8d5-2f52-4b2b-9e98-99745f00d384 fwd="61.3.30.27" dyno= connect= service= status=503 bytes=

]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=serene-plateau-2664.herokuapp.com request_id=2c1cbc02-e23b-41f0-b5f1-adab1353b67b fwd="61.3.30.27" dyno= connect= service= status=503 bytes=

我尝试重新启动应用程序,但没有成功:(

共有1个答案

吴康平
2023-03-14

您的profile看起来不正确。它应该看起来更像这样:

web: target/universal/stage/bin/helloworld -Dhttp.port=$PORT $PLAY_OPTS

关于该主题的官方文件:http://www.playframework.com/documentation/2.2.x/Production

 类似资料:
  • 问题内容: 我已经配置了SSL enpoint,并且可以确认它正在工作。当我进入日志时,会看到以下内容: 我试图追踪有关退出代码143的一些信息,以及为什么所有进程都被停止。签出以下服务器文件: 感谢您的提前反馈。如果需要,我可以提供更多详细信息。 ------解决方案(编辑)------- 请参阅下面的答案。 问题答案: 我在这里找到了答案:ExpressJS节点HTTPS服务器上的Heroku

  • 我一直在做IOS报警应用。我将在应用程序中创建一个警报。所以我需要警报的工作,作为“时钟”应用程序在iOS的工作。 当告警时间达到且app未运行时。警报声音将播放,用户可以通过点击取消或打盹来停止它。

  • [错误]无法执行目标组织。阿帕奇。专家插件:maven编译器插件:3.8。1:在project Divi up后端上编译(默认编译):编译时出现致命错误:目标版本无效:15- 我得到了上面的错误,有人知道为什么会这样吗?

  • 我正在尝试使用grails教程将我的应用程序连接到共享数据库5MB。我使用的是grails 2.1.0。在我的本地机器上,当我运行heroku配置时,我可以看到DATABASE_URL被设置了,但是在执行git push之后······我的生成因错误而停止: 因此,我添加了日志记录,以查看Heroku上的环境。我已将println system.env添加到datasource.groovy中,但

  • 这就是我想做的-- **问题/问题:** 这些是我迄今为止所做的步骤。 1) 我可以使用插件“heroku addons:add newrelic:stark”的heroku命令添加插件。我在heroku资源中看到了该插件。 2) 添加newrelic。yml文件。添加了newrelic。yml文件作为附件保存在play framework的conf文件夹中(如果存在application.con

  • 我有一个使用Twitter API开发的Nodejs应用程序。当托管在Heroku上时,它会出现以下错误: 2018-12-14T10:00:03.678180 00:00 heroku[web.1]:错误 R10(启动超时)- 在搜索时,我遇到了这些StackOverflow问题q1 q2,但它们都使用ExpressJS并监听固定端口,而不是Heroku提供的端口,而我的应用程序没有使用Expr