1

尝试添加greenscript,带有dependencies.yml

require:
- play 1.2.4
- play -> greenscript 1.2.7

在本地运行良好,但在 heroku 上的推送显示:

-----> Heroku receiving push
-----> Play! app detected
-----> Installing ivysettings.xml..... done
-----> Building Play! application...
       ~        _            _
       ~  _ __ | | __ _ _  _| |
       ~ | '_ \| |/ _' | || |_|
       ~ |  __/|_|\____|\__ (_)
       ~ |_|            |__/
       ~
       ~ play! 1.2.4, http://www.playframework.org
       ~
       ~ Oops,
       ~ Module not found: /tmp/build_p13kgit0jeq0/.play/modules/greenscript-1.2.7
       ~
       Building Play! application at directory ./
       Resolving dependencies: .play/play dependencies ./ --forProd --forceCopy --silent -Duser.home=/tmp/build_p13kgit0jeq0 2
&1
       ~ Oops,
       ~ Module not found: /tmp/build_p13kgit0jeq0/.play/modules/greenscript-1.2.7
       ~
 !     Failed to build Play! application
 !     Cleared Play! framework from cache
 !     Heroku push rejected, failed to compile Play! app

这是在heroku中声明播放应用程序依赖项的正确方法吗?

4

1 回答 1

2

发现是以下application.conf导致问题

module.greenscript=${play.path}/modules/greenscript-1.2.7

并且没有必要以这种旧方式定义模块。删除线,部署现在很好。谢谢詹姆斯。

于 2012-02-14T15:57:09.080 回答