尝试使用dependencies.yml
添加greenscriptrequire:
- 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中为play app声明依赖项的正确方法吗?
答案 0 :(得分:2)
发现以下application.conf导致问题
module.greenscript=${play.path}/modules/greenscript-1.2.7
并且不需要以这种旧方式定义模块。删除行,现在部署正常。谢谢詹姆斯。