Heroku 尝试重新部署旧应用程序时出错

时间:2021-07-30 16:34:28

标签: ruby-on-rails git heroku cedar

我正在尝试在 Heroku 上重新部署这个应用程序 https://github.com/Arepo/rails-blog,我已经有几年没有接触过它了。我收到警告说我需要更新 Cedar-14,所以我完成了 Upgrading an app 步骤 here

但是当我输入 git push heroku master 时,我只是收到以下错误消息:

fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

怎么了?我不希望 'heroku' 成为一个 git 仓库,或者至少不是我的一个......

1 个答案:

答案 0 :(得分:0)

我忘记了我需要在这台笔记本电脑上重新添加应用程序作为 Git 遥控器,使用 heroku git:remote -a <appname>