在heroku上播放scala部署

vjhs03f7  于 2021-06-29  发布在  Java
关注(0)|答案(1)|浏览(313)

我用这个链接下载了play scala应用程序https://www.playframework.com/getting-started 并根据我们的要求修改了逻辑。我在heroku上成功部署了应用程序。但是当我使用herolu提供的url访问网站时,它会显示一条类似这样的应用程序错误消息

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command

heroku原木——尾部
2020-12-24t09:11:44.372725+00:00 heroku[路由器]:at=error code=h10 desc=“app crash”method=get path=“/”host=playsample.herokuapp.com请求\u id=96959eac-dc81-4965-9a2d-61e48bs4fegf fwd=“47.9.72.84”dyno=connect=service=status=503 bytes=protocol=https
如何解决这个问题。提前谢谢

fjnneemd

fjnneemd1#

我找到了解决这个错误的方法。我刚刚在plugin.sbt中添加了heroku插件,并在build.sbt中声明了heroku应用程序的名称,还在application.conf文件中指定了主机。有关更多信息,请尝试此视频以找到深入的解决方案
https://www.youtube.com/watch?v=fspffwvn5s0

相关问题