我尝试按照http://www.playframework.com/documentation/2.3.x/ProductionHeroku中的描述将 Play Framework 2.3.0 应用程序部署到 Heroku 。
我的简单应用程序在本地运行没有任何问题,并且推送/部署到 Heroku 没有显示任何错误迹象。
推送日志结束:
[…]
-----> Building runtime environment
-----> Discovering process types
Procfile declares types -> (none)
done, 11.0MB
done, v4
http://xxxxxxxxxxx.herokuapp.com/ deployed to Heroku
To git@heroku.com:xxxxxxxxxxx.git
f1c57d6..6bb0df3 master -> master
updating local tracking ref 'refs/remotes/heroku/master'
当我打开网页时,我得到 Heroku 的“应用程序错误”页面(不是 Play 的错误页面)。
如果我运行heroku ps
没有列出任何进程(什么都没有)。
这是我第一次部署 Heroku。play
由于从命令更改为activator
自 2.3 以来,我不知何故觉得 Heroku 不知道如何启动 Play 应用程序。
还有一件事:我注意到,在 Heroku 仪表板 > 应用程序 > 设置 > 信息中,它显示“框架:Node.js”,这有点奇怪,尽管我在项目中确实使用了 Bower。
有任何想法吗?非常感谢!
更新:实际问题是 Heroku 认为我的应用程序是 Node.js 应用程序,只要package.json
我的存储库中有文件,就不会编译任何内容。一旦我删除它并将所有依赖项(bower_components
目录)提交到存储库,一切都很好。我现在必须找到一种方法来运行 Bower 更新并在推送时编译 Play 框架......