我正在使用webpack-git-hash并在我的机器上按预期工作。一旦我在Heroku上部署项目,我就会收到此错误:
Error: Command failed: git rev-parse --short=7 HEAD
fatal: Not a git repository (or any parent up to mount point /app)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
当我将回购推送到Heroku时会发生什么? .git文件夹放在其他地方?
答案 0 :(得分:0)
作为Heroku将您的存储库(或者您正在从CI工具推送的任何内容)转换为可运行的slug的过程的一部分,他们删除了git历史记录内容。它可能变得非常大,并且不值得将它放在slu / /容器中。
您可以在Heroku的slug compiler页面中查看更多内容。