【问题标题】:Pushing To Heroku Fails - No Such App Fatal推送到 Heroku 失败 - 没有这样的应用程序致命
【发布时间】:2016-03-26 13:12:51
【问题描述】:

Git push 到 heroku 指向一个不存在的 git 存储库。

git.heroku.com/secure-reef-1722.git 这是我们运行 heroku create 命令时创建的存储库。

但是当我们运行“push”命令($ git push heroku master)时,它会说

远程:!没有沸腾入口6957这样的应用程序。 致命:未找到存储库“https://git.heroku.com/boiling-inlet-6957.git/

当我们运行 $ git remote -v

时,我们也无法看到新的存储库
heroku  https://git.heroku.com/boiling-inlet-6957.git (fetch)
heroku  https://git.heroku.com/boiling-inlet-6957.git (push)
origin  git@bitbucket.org:coderz$/toy_app.git (fetch)
origin  git@bitbucket.org:coderz$/toy_app.git (push)

现在我们无法将文件推送到新的 heroku git 存储库 (git.heroku.com/secure-reef-1722.git)

请帮助我们。提前致谢。

完整的命令序列

coderz$:~/workspace/toy_app (master) $ heroku create
Creating secure-reef-1722... done, stack is cedar-14
https://secure-reef-1722.herokuapp.com/ | https://git.heroku.com/secure-reef-1722.git
coderz$:~/workspace/toy_app (master) $ git push heroku master
remote: !       No such app as boiling-inlet-6957.
fatal: repository 'https://git.heroku.com/boiling-inlet-6957.git/' not found
coderz$:~/workspace/toy_app (master) $ git remote -v
heroku  https://git.heroku.com/boiling-inlet-6957.git (fetch)
heroku  https://git.heroku.com/boiling-inlet-6957.git (push)
origin  git@bitbucket.org:coderz$/toy_app.git (fetch)
origin  git@bitbucket.org:coderz$/toy_app.git (push)
coderz$:~/workspace/toy_app (master) $ 

【问题讨论】:

  • 这个问题的解决方案是'Collin Graves'给this question的答案

标签: git heroku


【解决方案1】:

尝试重新添加远程url。

// Check for the current url 
git remote -v

// remove remote url
git remote rm heroku

// re-add the remote url
git remote add heroku git@heroku.com:boiling-inlet-6957.git

【讨论】:

  • "boiling-inlet-6957.git" 我们在 Heroku 上删除了与这个 repo 相关的应用程序。所以没有必要再次添加这个 repo。我们只希望接受新的 repo,并刷新旧的已删除应用程序。
  • 好吧,Swift Guy,然后将包含沸腾入口的最后一部分替换为 git.heroku.com/secure-reef-1722.git。您只是缺少正确的远程条目。
  • 设置正确的名字,我不知道你需要的名字是什么
  • 2020 年 4 月,仍然运行良好
  • 谢谢,这是我的作品,来自哥伦比亚的致敬
【解决方案2】:

这个命令解决我的问题

git remote rm heroku
git remote add heroku https://git.heroku.com/app-name.git

【讨论】:

    【解决方案3】:

    我正在关注下一个设置:

    1. git 远程 rm heroku #删除远程网址

    2. git远程添加herokuhttps://git.heroku.com/myapp.git

    添加新的 url heroku 远程

    1. git 远程 -v

    我验证了正确的远程网址

    1. git push heroku master

    推送更改

    【讨论】:

      【解决方案4】:

      我通过运行解决了同样的问题: heroku登录

      运行前: git 远程添加 heroku https://git.heroku.com/app-name.git

      【讨论】:

        【解决方案5】:

        您可能应该接受@codeWizard 的回答,因为它看起来像是您的快速解决方案。
        官方文档是一个完美的演练,可以避免你的麻烦:

        https://devcenter.heroku.com/articles/git

        【讨论】:

          【解决方案6】:
          git remote -v
          heroku  https://git.heroku.com/falling-wind-1624.git (fetch)
          heroku  https://git.heroku.com/falling-wind-1624.git (push)
          
          
           heroku git:remote -a falling-wind-1624
          

          【讨论】:

          • 你能用文字解释一下这个问题的发布者做错了什么,为什么上面的方法可以解决问题?
          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2023-03-03
          • 1970-01-01
          • 1970-01-01
          • 2020-01-01
          相关资源
          最近更新 更多