【问题标题】:Push to Heroku from different remote从不同的遥控器推送到 Heroku
【发布时间】:2017-12-16 05:28:18
【问题描述】:

到目前为止,我一直在使用 github 并推送到 Heroku。我有类似的东西,当我做 git push heroku master 时,它从我认为的源远程推送到 Heroku。

heroku  https://git.heroku.com/gentle-dawn-61312.git (fetch)
heroku  https://git.heroku.com/gentle-dawn-61312.git (push)
origin  git@github.com:Igor-Vuk/App.git (fetch)
origin  git@github.com:Igor-Vuk/rApp.git (push)

现在我在部署代码的地方添加了 bitbucket,所以现在我有了类似的东西。

bitbucket       ssh://git@bitbucket.org/Igor-Vuk/App.git (fetch)
bitbucket       ssh://git@bitbucket.org/Igor-Vuk/App.git (push)
heroku  https://git.heroku.com/gentle-dawn-61312.git (fetch)
heroku  https://git.heroku.com/gentle-dawn-61312.git (push)
origin  git@github.com:Igor-Vuk/App.git (fetch)
origin  git@github.com:Igor-Vuk/App.git (push)

如何将部署到 bitbucket 的代码推送到 heroku now?

【问题讨论】:

    标签: heroku github bitbucket


    【解决方案1】:

    这是相同的命令。如果您在系统上运行git push heroku master,则推送源自您的系统并直接发送到 Heroku,而不涉及 Bitbucket 或 GitHub。

    【讨论】:

    • 天哪,你是对的。我一直在幻想我应该在部署之前推送到 Github。
    • 将当前提交放在 Heroku 以外的远程仓库上仍然是一个好主意,以防万一。您运行的命令不会自行执行此操作,但您可能会使用 Bitbucket Pipelines 之类的东西来处理向 Heroku 的推送。
    猜你喜欢
    • 2019-04-18
    • 1970-01-01
    • 2017-12-20
    • 2018-12-29
    • 2014-08-11
    • 2016-06-17
    • 2014-03-12
    • 2013-09-05
    • 1970-01-01
    相关资源
    最近更新 更多