【发布时间】:2021-03-13 01:24:02
【问题描述】:
我是 lagom scala api 的初学者。我已经使用 lagom scala play 框架开发了 rest apis。 现在我想在heroku上部署我的服务只是为了实时测试。 我按照以下链接继续。
https://www.playframework.com/documentation/2.0/ProductionHeroku
将源代码从 github 连接到 heroku 并进行部署。检查活动构建日志,我发现 heroku 正在后台运行一些进程。一开始……
*----> 检测到 Scala 应用程序
-----> 安装 JDK 1.8... 完成
-----> 运行:sbt 编译阶段
正在为 1.2.8 下载 sbt 启动器:
To /tmp/scala_buildpack_build_dir/.sbt_home/launchers/1.2.8/sbt-launch.jar
正在下载 sbt 启动器 1.2.8 md5 哈希:
To /tmp/scala_buildpack_build_dir/.sbt_home/launchers/1.2.8/sbt-launch.jar.md5
/tmp/scala_buildpack_build_dir/.sbt_home/launchers/1.2.8/sbt-launch.jar: OK
正在获取 org.scala-sbt sbt 1.2.8(这可能需要一些时间)... *
完成后检测到一些错误
[info] Main Scala API documentation to /tmp/scala_buildpack_build_dir/crud-api/target/scala-2.13/api...
model contains 11 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging /tmp/scala_buildpack_build_dir/crud-api/target/scala-2.13/crud-api_2.13-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[success] Total time: 9 s, completed Dec 1, 2020 4:01:45 AM
[error] Expected symbol
[error] Not a valid command: -
[error] Expected end of input.
[error] Expected '--'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected 'addPluginSbtFile'
[error] -Xms512M
[error] ^
!错误:运行 sbt 失败!
We're sorry this build is failing. If you can't find the issue in application
code, please submit a ticket so we can help: https://help.heroku.com
You can also try reverting to the previous version of the buildpack by running:
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-scala#previous-version
Thanks,
Heroku
! Push 被拒绝,无法编译 Scala 应用。
!推送失败
有什么我想念的吗? 或者,如果您对如何在 heroku 或任何其他平台上部署 lagom scala api 以进行实时测试有任何其他想法。 提前致谢。
【问题讨论】:
标签: scala heroku deployment lagom heroku-api