致命:Heroku存储库不存在

1 ruby-on-rails heroku

我将我的Heroku应用程序从他们的愚蠢名称重命名为更合理的名称.我从没想过会在这里给我带来麻烦.刚才我尝试了以下内容

git remote -v

heroku  http://appname.herokuapp.com (fetch)
heroku  http://appname.herokuapp.com (push)
origin  git@github.com:MyAccount/games.git (fetch)
origin  git@github.com:MyAccount/games.git (push)
Run Code Online (Sandbox Code Playgroud)

我以为我在那里赢了.但后来我试过了

git push heroku master
Run Code Online (Sandbox Code Playgroud)

然后我收到了这条消息

fatal: repository 'http://appname.herokuapp.com/' not found
Run Code Online (Sandbox Code Playgroud)

我不明白为什么不推

Mat*_*ard 6

您需要更改heroku遥控器以匹配应用的新名称.

在命令行上执行

  • git remote remove heroku
  • git remote add heroku git@heroku.com:YOUR_APP_NAME.git

如果不解决这个问题,请告诉我