Ubuntu 20.04
Rails 6.1.4
ruby 2.6.7
heroku/7.59.4 linux-x64 node-v12.21.0
我做什么/看到:
...myapp$ git push # this works fine
...myapp$ git push heroku master
ssh: connect to host heroku.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已經搜索并閱讀了多個執行緒,但我沒有看到或嘗試過任何幫助。
我已經使用git push heroku master了好幾年了。今天它停止作業了。我上次推送到 heroku 是在 4 天前。我沒有看到任何輸出可以幫助我找出造成這種情況的原因。我的heroku客戶端設定沒有改變任何東西。
昨天我允許一些 Ubuntu 推送更新到我的系統。不確定這是否會導致問題,因為我懷疑它們是否包含任何 heroku-cli 更改。
我啟用了 MFA。我已經使用了幾個月,到目前為止還沒有出現問題。 heroku login在終端視窗中通過網路瀏覽器和推送到我的手機作業。
我的網站正在運行。
我試過heroku add:keys 沒有幫助。
日志不顯示任何內容。
想法?幫助?
感謝您的任何建議。
uj5u.com熱心網友回復:
解決方案:
$ heroku git:remote -a <app-name>
...顯然是我的應用程式的實際名稱。
我錯過了去年的公告?我很驚訝我能夠像我一樣推動heroku。
來自 Heroku 的幫助:
Could you please switch your heroku remote to the HTTPS URL?
As has been announced last year, the platform no longer accepts git pushes at an SSH remote. Could you please run commands like below to switch the heroku remote to the HTTPS URL?
$ heroku git:remote -a <app-name>
Regards,
Daigo
然后我應該看到:
$ git remote -v | grep heroku
heroku https://git.heroku.com/<app-name>.git (fetch)
heroku https://git.heroku.com/<app-name>.git (push)
再次,<app-name>是我的應用程式的實際名稱。
感謝您的關注
uj5u.com熱心網友回復:
感謝您的這篇文章和您的解決方案。我們在 22 年 3 月 18 日星期五在我的組織中彈出了一個非常相似的問題,您的帖子確實幫助解決了這個問題。對于遇到此問題的其他任何人,這里是Heroku 關于此問題的更改日志。我們還遇到了后續問題,發現這些步驟很有幫助。無論如何再次感謝!
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/446670.html
標籤:混帐 heroku heroku-cli
上一篇:heroku會自動更新存盤庫嗎?
下一篇:我想為HerokuPostgres資料庫設定idle_in_transaction_session_timeout
