Car*_*rla 10 deployment scala heroku scala-2.10 playframework-2.2
我已经和它斗争了几个小时,我无法弄清楚为什么在Heroku中部署我的Scala Play 2.2应用程序之后我得到了这个堆栈跟踪:
2013-09-30T01:05:09.413177+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=18174 $PLAY_OPTS`
2013-09-30T01:05:10.931893+00:00 app[web.1]: bash: target/start: No such file or directory
2013-09-30T01:05:12.382399+00:00 heroku[web.1]: Process exited with status 127
2013-09-30T01:05:12.414050+00:00 heroku[web.1]: State changed from starting to crashed
Run Code Online (Sandbox Code Playgroud)
我尝试了几个Procfile版本没有成功,一些例子是:
web: target/start -Dhttp.port=$PORT
web: target/start -Dhttp.port=$PORT $PLAY_OPTS
web: target/start -Dhttp.port=$PORT $JAVA_OPTS
web: target/start Web -Dhttp.port=$PORT $PLAY_OPTS
web: target/start -Dhttp.port=$PORT $PLAY_OPTS -Dconfig.file=application.conf
web: target/start -Dhttp.port=$PORT $PLAY_OPTS -Dconfig.file=conf/application.conf
Run Code Online (Sandbox Code Playgroud)
我甚至尝试过不使用Procfile.
我正在使用Scala 2.10.2和Play 2.2.在同一个Heroku应用程序中,我在Play 2.0上运行了我的项目的先前版本,我不知道这是否相关.
该应用程序在本地完美运行 我连接到Heroku的bash并运行
sbt clean
sbt stage
Run Code Online (Sandbox Code Playgroud)
手工检查,我检查了目标是否被清理并重新建造.
"目标/开始:没有这样的文件或目录"是指什么?对目标?要启动命令?别的什么?
S-C*_*S-C 21
Play 2.2更改了用于启动应用程序的文件的名称和位置
http://www.playframework.com/documentation/2.2.x/Production
例如,要从项目文件夹启动项目'foo'的应用程序,请更新Procfile以运行:
target/universal/stage/bin/foo
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4449 次 |
| 最近记录: |