実現したいこと
Ruby on rails × HerokuでWebアプリを作っています。
HTMLを微修正したので、アップデートしようとGitでCommitしようとすると
"nothing to commit, working tree clean"
と出て来てしまう。
その上で一応Pushしても
”The authenticity of host 'heroku.com (○○)' can't be established.”
とエラーが出てしまいます。
上記を解決し、無事にアップデートを完了させたいです!
発生している問題・エラーメッセージ
ec2-user:~/environment/ver1.0 (master) $ git add -u ec2-user:~/environment/ver1.0 (master) $ git commit -m "test" On branch master nothing to commit, working tree clean ec2-user:~/environment/ver1.0 (master) $ git push heroku master The authenticity of host 'heroku.com (○○)' can't be established. RSA key fingerprint is SHA○○:○○/○○/o. RSA key fingerprint is MD5:○○. Are you sure you want to continue connecting (yes/no)? Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
”git status”、”git add .”を試した結果
ec2-user:~/environment/ver1.0 (master) $ heroku login heroku: Press any key to open up the browser to login or q to exit: Opening browser to https://cli-auth.heroku.com/auth/browser/797a573e-○○-4e8b-b299-790ccdfa9b61 › Warning: Cannot open browser. Logging in... done Logged in as ○○@gmail.com ec2-user:~/environment/ver1.0 (master) $ git status On branch master nothing to commit, working tree clean ec2-user:~/environment/ver1.0 (master) $ git add . ec2-user:~/environment/ver1.0 (master) $ git commit -m "test2" On branch master nothing to commit, working tree clean ec2-user:~/environment/ver1.0 (master) $ git status On branch master nothing to commit, working tree clean
ファイルを一部修正して再度"git push"を試してみる
ec2-user:~/environment/ver1.0 (master) $ heroku login heroku: Press any key to open up the browser to login or q to exit: Opening browser to https://cli-auth.heroku.com/auth/browser/84347da0-a7b3-4aa7-b0c8-28d511e597e4 › Warning: Cannot open browser. Logging in... done Logged in as ○○@gmail.com ec2-user:~/environment/ver1.0 (master) $ git add . ec2-user:~/environment/ver1.0 (master) $ git commit -m "test3" [master ebdd4207] test3 Committer: EC2 Default User <ec2-user@ip-172-31-44-○○.us-east-2.compute.internal> Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly: git config --global user.name "Your Name" git config --global user.email you@example.com After doing this, you may fix the identity used for this commit with: git commit --amend --reset-author 1 file changed, 1 insertion(+), 1 deletion(-) ec2-user:~/environment/ver1.0 (master) $ git status On branch master nothing to commit, working tree clean ec2-user:~/environment/ver1.0 (master) $ git push heroku master The authenticity of host 'heroku.com (50.19.85.154)' can't be established. RSA key fingerprint is SHA256:○○. RSA key fingerprint is MD5:○○. Are you sure you want to continue connecting (yes/no)? Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ec2-user:~/environment/ver1.0 (master) $
config設定
ec2-user:~/environment/ver1.0 (master) $ git config --global user.name "○○" ec2-user:~/environment/ver1.0 (master) $ git config --global user.email "○○@gmail.com" ec2-user:~/environment/ver1.0 (master) $ git commit --amend --reset-author [master 131bc8d4] test3 1 file changed, 1 insertion(+), 1 deletion(-)
https接続で再度Git push
ec2-user:~/environment/ver1.0 (master) $ git add . ec2-user:~/environment/ver1.0 (master) $ git commit -m "test4" On branch master nothing to commit, working tree clean ec2-user:~/environment/ver1.0 (master) $ git push heroku master The authenticity of host 'heroku.com (50.19.85.132)' can't be established. RSA key fingerprint is SHA256:○○/o. RSA key fingerprint is MD5:○○. Are you sure you want to continue connecting (yes/no)? no Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Heroku infoの結果
ec2-user:~/environment/ver1.0 (master) $ heroku info ▸ No app specified. ▸ USAGE: heroku info my-app ec2-user:~/environment/ver1.0 (master) $ heroku info ○○ === ○○ Addons: cleardb:ignite pointdns:developer Auto Cert Mgmt: true Dynos: web: 1 Git URL: https://git.heroku.com/○○.git Owner: ○○@gmail.com Region: us Repo Size: 31 MB Slug Size: 75 MB Stack: heroku-18 Web URL: https://○○.herokuapp.com/
ec2-user:~/environment/ver1.0 (master) $ heroku --version heroku/7.26.2 linux-x64 node-v11.14.0 ec2-user:~/environment/ver1.0 (master) $ heroku login heroku: Press any key to open up the browser to login or q to exit: Opening browser to https://cli-auth.heroku.com/auth/browser/bdbdf84b-2157-49e6-9da9-○○ › Warning: Cannot open browser. Logging in... done Logged in as ○○@gmail.com ec2-user:~/environment/ver1.0 (master) $ heroku keys:add Found an SSH public key at /home/ec2-user/.ssh/id_rsa.pub ? Would you like to upload it to Heroku? Yes Uploading /home/ec2-user/.ssh/id_rsa.pub SSH key... done ec2-user:~/environment/ver1.0 (master) $ cat ~/.ssh cat: /home/ec2-user/.ssh: Is a directory ec2-user:~/environment/ver1.0 (master) $ cat ~/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBckPpN27X1CjFgdyuE5DnOHId3KtYKHBVG0emH0OcxRVTyvLOqcM0EJIxyjBOGpVVl4rlwKoYr8ayAKy527hlZLwC1NXX0K/N2caihtGdnjddOv5/RlRNmCM+yL0dDhx7rlvOybrWg4Ge05b5Ffq○○YbRGoMWNsZgGPxVhykix3RRMg7/p1zNqjycjQfebnJKuEDixPNZj66kRXVD00PBDWEdJ0Vgh6MpteRjioUVoCn1bi67fMlDjrPa+AoerK1+vpDdfsVB8dwZWufqyPW6r6rexAiNzMRETtAxBrIWgVPoh+ZMEcdx67Np2Z0737 ec2-user@ip-○○-31-44-167 ec2-user:~/environment/ver1.0 (master) $ git add . ec2-user:~/environment/ver1.0 (master) $ git commit -m "test5" [master 54b2ac64] test5 1 file changed, 1 insertion(+), 1 deletion(-) ec2-user:~/environment/ver1.0 (master) $ git push -f heroku master The authenticity of host 'heroku.com (50.○○.85.154)' can't be established. RSA key fingerprint is ○○/o. RSA key fingerprint is MD5:○○. Are you sure you want to continue connecting (yes/no)? no Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
せっかく初めてのデプロイが出来たのに更新が出来なくてツライです・・
アドバイスよろしくお願いします!
回答4件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/08 13:07
2019/07/09 01:26
2019/07/09 13:30