2016-02-01 65 views
0

最初尝试过Heroku(为了学习如何使用它)并部署了一个应用程序,很美味。最终进入Heroku删除所有的事情以便重新开始(下面的内容)。在启动以下功能之前,我的Heroku仪表板显示没有应用程序。在heroku上找不到存储库

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

我的问题:为什么我不能摆脱旧的应用程序信息,似乎是造成混乱?这是从哪里来的?我看到它说:重命名tastyallphp.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帐户,并重新开始会更容易,但认为先问我的问题。

回答

0

应用程序名称tastyallapp将来自存储库配置中远程的heroku定义。当你做git push heroku master时,这是用来确定目的地的。

从头开始将是一个选择,但如果你想尝试修复它,你可以这样做:

git remote remove heroku 

以前的远离旧的应用程序删除,然后:

heroku git:remote -a blackopp 

添加一个匹配当前应用程序名称的新远程。