简体   繁体   English

我无法推动heroku

[英]I can't able to push on heroku

I have an app on heroku named as floating-river-39482 .And I'm trying to deploy the app by giving the command git push heroku master . 我在heroku上有一个名为floating-river-39482的应用程序, floating-river-39482我正在尝试通过发出命令git push heroku master来部署该应用程序。 But I got an error from terminal like this 但是我从这样的终端收到错误

remote: !   No such app as sleepy-inlet-36834.
fatal: repository 'https://git.heroku.com/sleepy-inlet-36834.git/' not found

In this error message the name of the app is sleepy-inlet-36834 .But I'm trying to push the app floating-river-39482 . 在此错误消息中,应用程序的名称为sleepy-inlet-36834 。但我正在尝试将应用程序推入floating-river-39482 I don't have an app named sleepy-inlet-36834 . 我没有名为sleepy-inlet-36834的应用程序。 How can I correct this error? 我该如何纠正该错误?

It looks like you've somehow got your Git repository referencing an old (or deleted) Heroku application. 看来您已经以某种方式让您的Git存储库引用了一个旧的(或已删除的)Heroku应用程序。

What you can do most easily is open up your .git/config file in your project, and switch out the https://git.heroku.com/sleepy-inlet-36834.git/ URL with the correct one for your Heroku application: https://git.heroku.com/floating-river-39482.git . 您最容易做的就是在您的项目中打开.git/config文件,并为您的Heroku应用程序切换出正确的https://git.heroku.com/sleepy-inlet-36834.git/ URL : https://git.heroku.com/floating-river-39482.git : https://git.heroku.com/floating-river-39482.git

Then give it another go =) 然后再给它去=)

To explain further: Heroku works by using Git to setup a 'remote'. 进一步说明:Heroku通过使用Git设置“远程”来工作。 Remotes are just places you can push (or pull) code from. 遥控器只是您可以从中推送(或提取)代码的地方。 Git creates remotes by listing them in your project's .git/config file. Git通过在项目的.git/config文件中列出它们来创建遥控器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM