在heroku上进行scala部署



我已经使用此链接下载了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:0 heroku〔路由器〕:at=错误代码=H10 desc=";应用程序崩溃";method=GET path="/"host=playsample.herokuapp.com request_id=96959eac-dc81-4965-9a2d-61e48bs4fegf fwd=";47.9.72.84〃;dyno=连接=服务=状态=503字节=协议=https

如何解决此问题。提前感谢

我得到了这个错误的解决方案。我刚刚在plugin.sbt中添加了heroku插件,在build.sbt中声明了heroku应用程序的名称,并在application.conf文件中指定了主机。有关更多信息,请尝试此视频以找到深度解决方案

https://www.youtube.com/watch?v=FSpfFWvN5s0

最新更新