Ruby on Rails:推送到heroku - 键错误

时间:2023-01-21 00:16:37

I have recently moved my app from a linux machine to windows, and I am trying to set it up with heroku again. There are problems with my keys, so I am just wanting to push the app up as a brand new app.

我最近将我的应用程序从Linux机器移动到了Windows,我试图再次使用heroku进行设置。我的密钥有问题,所以我只是想将应用程序作为一个全新的应用程序推出。

I do, git init, then git add ., then git commit -m "init", and now I do heroku create.

我这样做,git init,然后git add。,然后git commit -m“init”,现在我做了heroku创建。

I want to just push my folder up to the new app cedar, but everytime I run git push heroku master is tries to push to the old one, and an error flags as my keys don't match.

我想把我的文件夹推到新的应用程序雪松,但每次我运行git push heroku master都会尝试推送到旧版本,并且因为我的密钥不匹配而出现错误标记。

Anyone have any ideas? Thanks

有人有主意吗?谢谢

2 个解决方案

#1


1  

Execute heroku auth:logout to logout, then heroku auth:login to login again.

执行heroku auth:logout to logout,然后heroku auth:登录再次登录。

To read full help message, try

要阅读完整的帮助信息,请尝试

heroku help
heroku auth

#2


0  

It seems that you're calling heroku apps:create wrongly? Take a look at the documentation here.

看来你正在调用heroku应用程序:错误地创建?看一下这里的文档。

Also, the deployment documentation might be more useful for you if you already have a git repository setup.

此外,如果您已经安装了git存储库,则部署文档可能对您更有用。

#1


1  

Execute heroku auth:logout to logout, then heroku auth:login to login again.

执行heroku auth:logout to logout,然后heroku auth:登录再次登录。

To read full help message, try

要阅读完整的帮助信息,请尝试

heroku help
heroku auth

#2


0  

It seems that you're calling heroku apps:create wrongly? Take a look at the documentation here.

看来你正在调用heroku应用程序:错误地创建?看一下这里的文档。

Also, the deployment documentation might be more useful for you if you already have a git repository setup.

此外,如果您已经安装了git存储库,则部署文档可能对您更有用。