当我输入时git push heroku master,我得到:
! No such app as sleepy-headland-6232.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
当我这样做时git remote -v,我得到:
heroku git@heroku.com:sleepy-headland-6232.git (fetch)
heroku git@heroku.com:sleepy-headland-6232.git (push)
origin git@github.com:fackthisshit/github.git (fetch)
origin git@github.com:fackthisshit/github.git (push)
Run Code Online (Sandbox Code Playgroud)
因此,我做到了git remote add heroku git@heroku.com:sleepy-headland-6232.git,但后来我得到了fatal: remote heroku already exists.
这就像一个无限循环的大梁.我怎么能摆脱这个循环?
小智 31
您无需创建新应用程序,有时在Heroku中重命名应用程序时会失去与远程连接的连接.
要解决这个问题
只需删除旧的heroku遥控器:
git remote rm heroku
并添加新的:
git remote add heroku git@heroku.com:name-to-the-new-one
如果你不知道链接地址,你可以在应用程序的设置中的heroku仪表板中获取它.就是这样.
Heroku 应用程序不存在。如果您尝试在浏览器中加载页面http://sleepy-headland-6232.herokuapp.com ,您将收到以下消息:
Heroku | No such app
There is no app configured at that hostname.
Perhaps the app owner has renamed it, or you mistyped the URL.
Run Code Online (Sandbox Code Playgroud)
要创建一个新的 Heroku 应用程序,您可以通过他们的网站或使用他们的命令行工具来完成,如下所示:$ heroku apps:create name_of_your_app
| 归档时间: |
|
| 查看次数: |
22123 次 |
| 最近记录: |