【问题标题】:repository not found on heroku在heroku上找不到存储库
【发布时间】:2016-05-10 04:00:16
【问题描述】:

最初尝试了 Heroku(为了学习如何使用它)并部署了一个应用程序,tasticall。最终进入 Heroku 删除所有已完成的操作以便重新开始(如下所示)。在开始下面的内容之前,我的 Heroku 仪表板没有显示任何应用程序。

我桌面上的 blackopp 文件夹包含我的空 composer.json 和 idex.php 测试文件,其中包含说“你好”的代码。

我的问题:为什么我不能摆脱似乎造成混乱的旧应用信息?这是从哪里来的?我看到它说:重命名tasteallphp.php => blackopp.php(100%)但似乎无法理解这一点,因为不应该有任何“美味......”的参考。

$ cd /Users/xxxx/Desktop/blackopp
$ pwd
/Users/xxxx/Desktop/blackopp
$ git init
Reinitialized existing Git repository in /Users/xxxx/Desktop/blackopp/.git/
$ git add .
$ git commit -m "initial commit"
[master bff3b6c] initial commit
Committer: xxxx 
Your name and email address were configured automatically……
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename tastyallphp.php => blackopp.php (100%)
$ heroku create blackopp
Creating blackopp... done, stack is cedar-14
https://blackopp.herokuapp.com/ | https://git.heroku.com/blackopp.git
$ git push heroku master
remote: !   No such app as tastyallapp.
fatal: repository 'https://git.heroku.com/tastyallapp.git/' not found

我想知道删除我的整个 Heroku 帐户并重新开始是否会更容易,但我想先问我的问题。

【问题讨论】:

    标签: php git heroku


    【解决方案1】:

    应用程序名称tastyallapp 将来自存储库配置中heroku 远程的定义。这是在您执行git push heroku master 时用于确定目的地的内容。

    重新开始是一种选择,但如果您想尝试修复它,您可以这样做:

    git remote remove heroku
    

    从旧应用中删除之前的遥控器,然后:

    heroku git:remote -a blackopp
    

    添加与当前应用名称匹配的新遥控器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-30
      • 2020-09-12
      • 1970-01-01
      • 2013-12-11
      • 1970-01-01
      • 2014-06-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多