在heroku上添加greenscript依赖项



尝试添加具有dependencies.yml 的greenscript

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中声明play应用程序依赖关系的正确方法吗?

发现以下application.conf导致问题

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

并且没有必要以这种旧的方式定义模块。移除线路,现在部署就可以了。Thx James。

相关内容

  • 没有找到相关文章

最新更新