Heroku Git对象枚举错误,对已经推送的文件进行计数

我有一个Heroku应用程序,我使用Git推送更新。 它可以容纳大量图像,大约5500幅图像,偶尔会更改。

在最近的几次推送中,我注意到git objects枚举正在计算一次推送之间的指数级对象。首先是5500,然后是11000,然后是16500,依此类推...

我确定以前的提交已被推送,正如我在Heroku应用程序中看到的那样。 我也确定我在提交中没有更改那么多文件。

似乎Heroku将文件推送到应用程序,但可能不推送到它使用的远程Git客户端。 AFAIK,Heroku不允许远程git视图,所以我不能确定(获取说是正常的) (编辑:获取现在说HEAD处于较低的提交。但是应用程序上的文件是更新!东西坏了吗?)

我需要你的帮助。我需要某种方法来修复它,这样每次推送将仅更改5500,否则希望推送将永远生效,并且通常在完成写入后会从Heroku中超时。

如果没有解决方案,也许是通过文件而不是通过Git将文件上传到Heroku的另一种方法?

谢谢!

pibenxiai7 回答:Heroku Git对象枚举错误,对已经推送的文件进行计数

如果没有解决方案,也许是将文件上传到 Heroku,不是通过Git吗?

Heroku Deploy按钮将您的应用程序部署到Heroku的方式略有不同。 Heroku上的git存储库仍然存在,但是如果克隆它,则会看到一个空的存储库。

您需要一个const { filter,where,any,propEq,reject,evolve,pipe,map } = R const filterLinesBySegments = filter(where({ segments: any(propEq('name','general')) })) const filterCustomFromSegments = evolve({ segments: reject(propEq('name','custom')) }) const fn = pipe( filterLinesBySegments,map(filterCustomFromSegments),) const lines = [{"id":1191,"name":"dev","segments":[]},{"id":1192,"name":"credit","folder":"Embarazadas","segments":[{"name":"general"},{"name":"custom"}]},{"id":1311,"name":"box","segments":[{"name":"custom","line_id":1431,"id":21,"active":true}]},{"id":2000,"name":"sin folder","folder":null,"segments":[{"name":"custom"},{"name":"general"}]},"name":"credit card","segments":[{"name":"general"}]}] const result = fn(lines) console.log(result)和一个Heroku部署按钮,请参见:
https://devcenter.heroku.com/articles/app-json-schema#addons
https://devcenter.heroku.com/articles/heroku-button

参考示例:
https://github.com/vegeta897/d-zone/tree/heroku
https://github.com/dipu-bd/lightnovel-crawler
https://github.com/nntin/shell-kun
https://github.com/nntin/discord-twitter-bot

如果您使用的是git子模块,它们将无法正确部署到Heroku,请参见:
https://devcenter.heroku.com/articles/github-integration-review-apps#do-git-submodules-work

它将通过“ repo-content tarballs”部署到Heroku。您也不会将整个git历史提交到Heroku。

本文链接:https://www.f2er.com/2573671.html

大家都在问