LoginSignup
13
12

More than 5 years have passed since last update.

git push heroku master がエラーを吐く

Posted at

Rails Tutorial 1.5.2 Herokuにデプロイする (1)

$ git push heroku master
(警告メッセージが若干表示されることがありますが、今は無視してください。詳しくは7.5で解説します)。

よく言ってくれたぜ・・若干表示どころかそもそもdeploy出来てないことは考慮されてないのか・・

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
fatal: Authentication failed for 'https://git.heroku.com/アドレス.git/'

となりエラーが発生してデプロイ不能。
コマンドを入力した際に出てくる

Username for 'https://git.heroku.com': 
Password for 'https://git.heroku.com': 

こちらのpasswordはherokuのpasswordではなく

heroku auth:token

で表示されたパスワードを通せば無事に(Windows環境では)デプロイ出来たのことで実行してみるもののエラーは依然変わらず。

アイテム二号を使って無事通過

git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/

仕組みはさっぱり分かりませんが上記コードを打った後に

git push heroku master

実行すると警告文が3つほど出てきますが、無事にデプロイ完了。
いまのところ全てにおいてエラーを吐くRails Tutorial・・

参考サイト
git push heroku master is asking for authentication

13
12
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
13
12