如何修复 long-运行 `git push` 到 Heroku 远程响应 `504 GATEWAY_TIMEOUT`?
How to fix long-running `git push` to Heroku remote responding `504 GATEWAY_TIMEOUT`?
我正在尝试 git 将分支推送(强制)到托管在 Heroku 上的 git 存储库。
不幸的是,经过漫长的等待,超时了。我已经尝试了很多次,但都出现相同的 504 GATEWAY_TIMEOUT
错误:
$ git push --force my-heroku-remote my-feature-branch:master
Counting objects: 12345, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12345/12345), done.
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 GATEWAY_TIMEOUT
fatal: The remote end hung up unexpectedly
Writing objects: 100% (12345/12345), 347.86 MiB | 98.00 KiB/s, done.
Total 12345 (delta 123), reused 1234 (delta 123)
fatal: The remote end hung up unexpectedly
Everything up-to-date
如何才能成功推送到这个远程?
Heroku 支持建议重置成功解决问题的远程仓库。 绝对确定您在正确的 heroku 上执行此操作 app/repo 在您 运行 此命令之前:
heroku repo:reset -a my-heroku-app
运行执行上述命令后,git 推送工作正常。
这使用 Heroku CLI 存储库插件,您可能需要安装该插件:https://github.com/heroku/heroku-repo#reset
我正在尝试 git 将分支推送(强制)到托管在 Heroku 上的 git 存储库。
不幸的是,经过漫长的等待,超时了。我已经尝试了很多次,但都出现相同的 504 GATEWAY_TIMEOUT
错误:
$ git push --force my-heroku-remote my-feature-branch:master
Counting objects: 12345, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12345/12345), done.
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 GATEWAY_TIMEOUT
fatal: The remote end hung up unexpectedly
Writing objects: 100% (12345/12345), 347.86 MiB | 98.00 KiB/s, done.
Total 12345 (delta 123), reused 1234 (delta 123)
fatal: The remote end hung up unexpectedly
Everything up-to-date
如何才能成功推送到这个远程?
Heroku 支持建议重置成功解决问题的远程仓库。 绝对确定您在正确的 heroku 上执行此操作 app/repo 在您 运行 此命令之前:
heroku repo:reset -a my-heroku-app
运行执行上述命令后,git 推送工作正常。
这使用 Heroku CLI 存储库插件,您可能需要安装该插件:https://github.com/heroku/heroku-repo#reset