Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git push heroku主机错误,致命存储库_Git_Heroku - Fatal编程技术网

git push heroku主机错误,致命存储库

git push heroku主机错误,致命存储库,git,heroku,Git,Heroku,尝试使用命令将django web应用部署到heroku时出错 $ git push heroku master 以下是我键入该命令后给出的错误: mysite lateefa$ git push heroku master remote: ! No such app as vast-spire-40247. fatal: repository 'https://git.heroku.com/vast-spire-40247.git/' not found

尝试使用命令将django web应用部署到heroku时出错

    $ git push heroku master
以下是我键入该命令后给出的错误:

    mysite lateefa$ git push heroku master
    remote: !   No such app as vast-spire-40247.
    fatal: repository 'https://git.heroku.com/vast-spire-40247.git/' not found
有关于如何解决此问题的建议吗?

添加远程url

git remote add heroku git@heroku.com:vast-spire-40247.git

git remote-v
的输出是什么https://github.com/heyylateef/personal-site.git (提取)
原点https://github.com/heyylateef/personal-site.git (推送)
,这是正确的,请参见我的答案以添加远程url,然后,你应该可以推送。我实际上删除了heroku仪表板上名为vast-spire-40247的应用程序,我正在尝试将我的项目部署到我刚刚制作的另一个应用程序上,该应用程序的名称不同。我用新应用程序替换了旧应用程序的名称,但我得到了以下命令:
lateefa$git remote add herokugit@heroku.com:latadetona.git致命:远程heroku已经存在。
@heyylatef可能是因为它确实存在。latadetona是您的新应用程序名称吗?您必须删除实际的heroku存储库,或使用git remote set url heroku对其进行重命名git@heroku.com:latadetona.git