scala - 推送到 Heroku 后应用程序未启动

标签 scala heroku

这是我的“git push heroku master”命令的输出:

   [info] Done updating.
   [info] Compiling 2 Scala sources to /tmp/build_3kg6a8iex5xd6/target/scala-2.8.1/classes...
   [success] Total time: 8 s, completed Apr 22, 2012 4:54:01 PM
   [info] Wrote start script for mainClass := Some(JettyLauncher) to /tmp/build_3kg6a8iex5xd6/target/start
   [success] Total time: 0 s, completed Apr 22, 2012 4:54:01 PM
   Discovering process types
   Procfile declares types -> web
   Compiled slug size is 57.0MB
   Launching...  done, v23
   http://xxxxxx.herokuapp.com deployed to Heroku

此后应用程序仍未启动。尝试过heroku ps。它没有显示任何进程。

我的 Procfile 的内容:

web: target/start JettyLauncher

当我尝试 foreman start 时,它工作正常。

有人可以帮我找出为什么应用程序部署到 Heroku 后无法启动吗?

最佳答案

尝试运行

heroku scale web=1

如果您在此之前推送失败,heroku 不一定会自动启动应用程序

关于scala - 推送到 Heroku 后应用程序未启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10270174/

相关文章:

scala - 将类型匹配与序列匹配器混合会在 Scala 中产生奇怪的行为

Heroku 本地 : "http" directive is duplicate

python - django 在生产中不运行特定的迁移(它跳过)

postgresql - heroku postgresql 无法连接到服务器 : Connection timed out

scala - Future回调方法和Promises的区别【成功与失败】?

scala - Play Framework 配置包括与 dist 的中断

java - 读取数据库表并输出到scala中的文件?

mongodb - Scala 和 Playframework : what they mean with ExecutionException: Boxed Error

database - Heroku 数据库缓存

ruby-on-rails - 如何在 Heroku 上浏览我的数据库记录