heroku踩坑

2019-01-29  本文已影响5人  这是我用来记录技术的一个博客

$ git push heroku master

remote: !       WARNING:

remote: !       Do not authenticate with username and password using git.

remote: !       Run heroku login to update your credentials, then retry the git command.

remote: !       See documentation for details:[https://devcenter.heroku.com/articles/git#http-git-authentication](https://devcenter.heroku.com/articles/git#http-git-authentication)

fatal: Authentication failed for '[https://git.heroku.com/secret-fortress-45076.git/](https://git.heroku.com/secret-fortress-45076.git/)'

这个错误让我纠结很蛮长时间

最后查了查


username : *blank*

password : *heroku auth token*

where the auth token can be retrieved by $ heroku auth:token

其中username就填写远程创建的heroku名称

密钥:

https://dashboard.heroku.com/account

在这里粘贴密钥

你也可以改指向name的远程项目

heroku git:remote -a your-name
set git remote heroku to https://git.heroku.com/your-name
上一篇 下一篇

猜你喜欢

热点阅读