0
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 1 year has passed since last update.

git push heroku masterで失敗後heroku loginでも失敗した場合

Posted at

エラー内容

Railsチュートリアル第9章の最後でgitにpush後、herokuにデプロイしようとしたら以下のようなエラーが発生。

$ git push heroku master
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/~~~.git/'

エラー文にheroku loginを実行して下さいと書いてあるので

$ heroku login

を実行したがherokuにログインできない。

解決

調べてみると、heroku login --interactiveを実行してみると解決できるかも。

$ heroku login --interactive

ログイン情報を打ち込んで無事ログイン!その後

$ git push heroku master

で無事デプロイ完了!

参考記事

0
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
0
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?