1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

herokuデプロイ時にパスワードが要求された

Posted at

#内容

編集したアプリをgithubにpushした後、herokuにデプロイしようとしたところパスワードの要求をされましたが、、、

$ git push heroku HEAD
Username for 'https://git.heroku.com': 
Password for 'https://@git.heroku.com': 
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
fatal: Authentication failed for 'https://git.heroku.com/your_app.git/'

usernameかpasswordどちらかを間違えたのか、怒られました。

#解決法

ひとまず、言われた通り

$ heroku login

を試してみると、

heroku: Press any key to open up the browser to login or q to exit: 

と言われたので、テキトーにキーを押すと、herokuのloginページのブラウザが立ち上がります。

スクリーンショット 2021-08-28 22.50.07.png
logInボタンを押して、ターミナルに戻ると

Logging in... done
Logged in as メールアドレス

ログインできたっぽい!

その後、

$ git push heroku HEAD

を実行すると、、、、デプロイできた!!!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?