从混帐回购协议下的子目录部署在Heroku Play应用程式(Deploy Play app on

2019-08-06 12:32发布

我想用部署在Heroku上一个播放2.0.4应用git push heroku master ,但我提出打根文件夹到我的git回购的子文件夹中。 有没有办法从那里部署的方法吗?

目前,它misidentifies我的项目为1.2.4播放应用程序,然后编译和部署失败。

-----> Play! app detected
-----> WARNING: Play! version not specified in dependencies.yml. Default version: 1.2.4 being used....
-----> Installing Play! 1.2.4.....
-----> done
-----> Installing ivysettings.xml..... done
-----> Building Play! application...

Answer 1:

安装此插件的git。

https://github.com/apenwarr/git-subtree

运行“git的子树推--prefix **子文件夹的应用程序”的Heroku大师”



Answer 2:

你可以玩的版本,你想添加到conf/dependencies.yml文件存放区。

dependencies.yml:

# Application dependencies

require:
    - play 2.0.4

然后,它会加载正确的打版。



Answer 3:

我有同样的问题,令人惊讶的没有通用的解决方案中。 所以我写了一个buildpack自己。 希望这是有帮助的https://github.com/timanovsky/subdir-heroku-buildpack



文章来源: Deploy Play app on Heroku from a subdirectory of git repo