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 ! 没有类似demo_应用程序的应用程序_Git_Heroku - Fatal编程技术网

Git ! 没有类似demo_应用程序的应用程序

Git ! 没有类似demo_应用程序的应用程序,git,heroku,Git,Heroku,我是github/heroku的新手,现在正在学习rails教程。当我试图提交我的申请时,我得到一个错误,上面写着!没有像demo_应用这样的应用程序。然而,当我 git remote -v 我得到: heroku git@heroku.com:demo_app.git (fetch) heroku git@heroku.com:demo_app.git (push) origin git@heroku.com:schan93/demo_app.git (fetch) origin git@h

我是github/heroku的新手,现在正在学习rails教程。当我试图提交我的申请时,我得到一个错误,上面写着!没有像demo_应用这样的应用程序。然而,当我

git remote -v
我得到:

heroku git@heroku.com:demo_app.git (fetch)
heroku git@heroku.com:demo_app.git (push)
origin git@heroku.com:schan93/demo_app.git (fetch)
origin git@heroku.com:schan93/demo_app.git (fetch)
但当我这么做的时候

git push heroku master
我得到一个错误,上面写着

! No such app as demo_app.

有什么帮助吗?谢谢

如果这是一个错误的假设,请原谅,但我猜你在heroku上没有名为demo_app的应用程序

如果是这种情况,您应该使用创建应用程序,如下所示

heroku apps:create
您可以像这样传递一个可选名称

heroku apps:create my_app
这应该会弹出一个git url,然后您可以将其添加到git中,并且您应该能够推送到