'git push heroku master' is still asking for authentication

前端 未结 19 2622
囚心锁ツ
囚心锁ツ 2020-12-02 05:37

I have executed:

$ heroku login

But when I try to push, I\'m still asked for authentication:

$ git push heroku master
Usern         


        
19条回答
  •  爱一瞬间的悲伤
    2020-12-02 05:44

    If someone is still struggling with this, this answer helped me a lot Use Heroku API key.

    First, as @Raziza O mentioned in a comment, to get heroku API key

    https://dashboard.heroku.com/account. Roll down the screen and hit the reveal button.

    Then, just run git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master

提交回复
热议问题