Heroku 推送不更新 GitHub 仓库
Heroku push doesn't update the GitHub repo
我设置了一个 heroku 帐户,当我这样做时 git push heroku master
,heroku 显示我已构建,但我的本地 GitHub 没有随着我的代码更改而更新。
在我的设置中,我也有正确的 GitHub 存储库。 Picture of my settings
它应该是这样工作的。
您推送到一个名为 heroku
的遥控器,它很可能指向 Heroku。您可能有 另一个 遥控器,可能称为 origin
,您尚未将这些更新推送到。 Heroku 永远不会为您更新 GitHub。
不过,您似乎已经在 Heroku 中设置了 GitHub 集成。 That works in the other direction, from GitHub to Heroku:
Heroku integrates with GitHub to make it easy to deploy code living on GitHub to apps running on Heroku. When GitHub integration is configured for a Heroku app, Heroku can automatically build and release (if the build is successful) pushes to the specified GitHub repo.
这可以是手动的,在这种情况下,您需要单击 Heroku 端的按钮进行构建,或者 automatic,在这种情况下,您将推送到(或合并到)已配置的 GitHub 分支将自动触发 Heroku 上的构建。
我设置了一个 heroku 帐户,当我这样做时 git push heroku master
,heroku 显示我已构建,但我的本地 GitHub 没有随着我的代码更改而更新。
在我的设置中,我也有正确的 GitHub 存储库。 Picture of my settings
它应该是这样工作的。
您推送到一个名为 heroku
的遥控器,它很可能指向 Heroku。您可能有 另一个 遥控器,可能称为 origin
,您尚未将这些更新推送到。 Heroku 永远不会为您更新 GitHub。
不过,您似乎已经在 Heroku 中设置了 GitHub 集成。 That works in the other direction, from GitHub to Heroku:
Heroku integrates with GitHub to make it easy to deploy code living on GitHub to apps running on Heroku. When GitHub integration is configured for a Heroku app, Heroku can automatically build and release (if the build is successful) pushes to the specified GitHub repo.
这可以是手动的,在这种情况下,您需要单击 Heroku 端的按钮进行构建,或者 automatic,在这种情况下,您将推送到(或合并到)已配置的 GitHub 分支将自动触发 Heroku 上的构建。