从Github到Heroku部署一个git分支及其子模块 [英] Deploying a git branch together with its submodule from Github to Heroku
问题描述
我参考了 Heroku从Github部署功能,该功能允许您从Github分支部署到Heroku。请参阅: https://devcenter.heroku.com/articles/github-integration
我想知道是否可以从包含git子模块的github项目进行部署?
如果是这样其他在我的项目中运行submodule命令的必要步骤是什么?
git submodule add git://github.com/ whosoever / whatever.git
好像我找到了回答我的问题,不幸的是它似乎不可能实现我想要的,即部署一个使用子模块的github repo ...
引用官方的Heroku文档 https://devcenter.heroku.com/articles/github-integration#git-submodules ):
使用子模块的GitHub仓库通常不会在Heroku上正确部署
。这是因为当生成回购内容tarball时,GitHub不包含子模块内容
。
I am in reference to Heroku's deployment from Github feature that allows you to deploy from a Github branch to Heroku. See: https://devcenter.heroku.com/articles/github-integration
I would like to know if I can deploy from a github project that includes a git submodule?
If so what are the necessary steps other that running the submodule command below on my project?
git submodule add git://github.com/whomsoever/whatever.git
It seems I have found the answer to my question and unfortunately it does not seem possible to achieve what I want i.e. to deploy a github repo that uses submodules...
To quote the official Heroku documentation (https://devcenter.heroku.com/articles/github-integration#git-submodules):
GitHub repos that use submodules will generally not deploy correctly on Heroku. This is because GitHub does not include submodule contents when repo-content tarballs are generated.
这篇关于从Github到Heroku部署一个git分支及其子模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!