質問するログイン新規登録

質問編集履歴

6

heroku --version、heroku keys:add、git push -fを一通り試す

2019/07/09 13:30

投稿

k.chisato
k.chisato

スコア18

title CHANGED
File without changes
body CHANGED
@@ -138,5 +138,39 @@
138
138
  Web URL: https://○○.herokuapp.com/
139
139
  ```
140
140
 
141
+ ```
142
+ ec2-user:~/environment/ver1.0 (master) $ heroku --version
143
+ heroku/7.26.2 linux-x64 node-v11.14.0
144
+ ec2-user:~/environment/ver1.0 (master) $ heroku login
145
+ heroku: Press any key to open up the browser to login or q to exit:
146
+ Opening browser to https://cli-auth.heroku.com/auth/browser/bdbdf84b-2157-49e6-9da9-○○
147
+ › Warning: Cannot open browser.
148
+ Logging in... done
149
+ Logged in as ○○@gmail.com
150
+ ec2-user:~/environment/ver1.0 (master) $ heroku keys:add
151
+ Found an SSH public key at /home/ec2-user/.ssh/id_rsa.pub
152
+ ? Would you like to upload it to Heroku? Yes
153
+ Uploading /home/ec2-user/.ssh/id_rsa.pub SSH key... done
154
+ ec2-user:~/environment/ver1.0 (master) $ cat ~/.ssh
155
+ cat: /home/ec2-user/.ssh: Is a directory
156
+ ec2-user:~/environment/ver1.0 (master) $ cat ~/.ssh/id_rsa.pub
157
+ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBckPpN27X1CjFgdyuE5DnOHId3KtYKHBVG0emH0OcxRVTyvLOqcM0EJIxyjBOGpVVl4rlwKoYr8ayAKy527hlZLwC1NXX0K/N2caihtGdnjddOv5/RlRNmCM+yL0dDhx7rlvOybrWg4Ge05b5Ffq○○YbRGoMWNsZgGPxVhykix3RRMg7/p1zNqjycjQfebnJKuEDixPNZj66kRXVD00PBDWEdJ0Vgh6MpteRjioUVoCn1bi67fMlDjrPa+AoerK1+vpDdfsVB8dwZWufqyPW6r6rexAiNzMRETtAxBrIWgVPoh+ZMEcdx67Np2Z0737 ec2-user@ip-○○-31-44-167
158
+ ec2-user:~/environment/ver1.0 (master) $ git add .
159
+ ec2-user:~/environment/ver1.0 (master) $ git commit -m "test5"
160
+ [master 54b2ac64] test5
161
+ 1 file changed, 1 insertion(+), 1 deletion(-)
162
+ ec2-user:~/environment/ver1.0 (master) $ git push -f heroku master
163
+ The authenticity of host 'heroku.com (50.○○.85.154)' can't be established.
164
+ RSA key fingerprint is ○○/o.
165
+ RSA key fingerprint is MD5:○○.
166
+ Are you sure you want to continue connecting (yes/no)? no
167
+ Host key verification failed.
168
+ fatal: Could not read from remote repository.
169
+
170
+ Please make sure you have the correct access rights
171
+ and the repository exists.
172
+ ```
173
+
174
+
141
175
  せっかく初めてのデプロイが出来たのに更新が出来なくてツライです・・
142
176
  アドバイスよろしくお願いします!

5

heroku infoの結果を追記

2019/07/09 13:29

投稿

k.chisato
k.chisato

スコア18

title CHANGED
File without changes
body CHANGED
@@ -118,5 +118,25 @@
118
118
  and the repository exists.
119
119
  ```
120
120
 
121
+ ### Heroku infoの結果
122
+ ```
123
+ ec2-user:~/environment/ver1.0 (master) $ heroku info
124
+ ▸ No app specified.
125
+ ▸ USAGE: heroku info my-app
126
+ ec2-user:~/environment/ver1.0 (master) $ heroku info ○○
127
+ === ○○
128
+ Addons: cleardb:ignite
129
+ pointdns:developer
130
+ Auto Cert Mgmt: true
131
+ Dynos: web: 1
132
+ Git URL: https://git.heroku.com/○○.git
133
+ Owner: ○○@gmail.com
134
+ Region: us
135
+ Repo Size: 31 MB
136
+ Slug Size: 75 MB
137
+ Stack: heroku-18
138
+ Web URL: https://○○.herokuapp.com/
139
+ ```
140
+
121
141
  せっかく初めてのデプロイが出来たのに更新が出来なくてツライです・・
122
142
  アドバイスよろしくお願いします!

4

config設定とhttps接続を試した結果

2019/07/08 13:40

投稿

k.chisato
k.chisato

スコア18

title CHANGED
File without changes
body CHANGED
@@ -91,5 +91,32 @@
91
91
  ec2-user:~/environment/ver1.0 (master) $
92
92
  ```
93
93
 
94
+ ### config設定
95
+ ```
96
+ ec2-user:~/environment/ver1.0 (master) $ git config --global user.name "○○"
97
+ ec2-user:~/environment/ver1.0 (master) $ git config --global user.email "○○@gmail.com"
98
+ ec2-user:~/environment/ver1.0 (master) $ git commit --amend --reset-author
99
+ [master 131bc8d4] test3
100
+ 1 file changed, 1 insertion(+), 1 deletion(-)
101
+ ```
102
+
103
+ ### https接続で再度Git push
104
+ ```
105
+ ec2-user:~/environment/ver1.0 (master) $ git add .
106
+ ec2-user:~/environment/ver1.0 (master) $ git commit -m "test4"
107
+ On branch master
108
+ nothing to commit, working tree clean
109
+ ec2-user:~/environment/ver1.0 (master) $ git push heroku master
110
+ The authenticity of host 'heroku.com (50.19.85.132)' can't be established.
111
+ RSA key fingerprint is SHA256:○○/o.
112
+ RSA key fingerprint is MD5:○○.
113
+ Are you sure you want to continue connecting (yes/no)? no
114
+ Host key verification failed.
115
+ fatal: Could not read from remote repository.
116
+
117
+ Please make sure you have the correct access rights
118
+ and the repository exists.
119
+ ```
120
+
94
121
  せっかく初めてのデプロイが出来たのに更新が出来なくてツライです・・
95
122
  アドバイスよろしくお願いします!

3

ファイルを一部修正して再度"git push"を試してみた

2019/07/07 15:23

投稿

k.chisato
k.chisato

スコア18

title CHANGED
File without changes
body CHANGED
@@ -51,5 +51,45 @@
51
51
  nothing to commit, working tree clean
52
52
  ```
53
53
 
54
+ ### ファイルを一部修正して再度"git push"を試してみる
55
+ ```
56
+ ec2-user:~/environment/ver1.0 (master) $ heroku login
57
+ heroku: Press any key to open up the browser to login or q to exit:
58
+ Opening browser to https://cli-auth.heroku.com/auth/browser/84347da0-a7b3-4aa7-b0c8-28d511e597e4
59
+ › Warning: Cannot open browser.
60
+ Logging in... done
61
+ Logged in as ○○@gmail.com
62
+ ec2-user:~/environment/ver1.0 (master) $ git add .
63
+ ec2-user:~/environment/ver1.0 (master) $ git commit -m "test3"
64
+ [master ebdd4207] test3
65
+ Committer: EC2 Default User <ec2-user@ip-172-31-44-○○.us-east-2.compute.internal>
66
+ Your name and email address were configured automatically based
67
+ on your username and hostname. Please check that they are accurate.
68
+ You can suppress this message by setting them explicitly:
69
+
70
+ git config --global user.name "Your Name"
71
+ git config --global user.email you@example.com
72
+
73
+ After doing this, you may fix the identity used for this commit with:
74
+
75
+ git commit --amend --reset-author
76
+
77
+ 1 file changed, 1 insertion(+), 1 deletion(-)
78
+ ec2-user:~/environment/ver1.0 (master) $ git status
79
+ On branch master
80
+ nothing to commit, working tree clean
81
+ ec2-user:~/environment/ver1.0 (master) $ git push heroku master
82
+ The authenticity of host 'heroku.com (50.19.85.154)' can't be established.
83
+ RSA key fingerprint is SHA256:○○.
84
+ RSA key fingerprint is MD5:○○.
85
+ Are you sure you want to continue connecting (yes/no)?
86
+ Host key verification failed.
87
+ fatal: Could not read from remote repository.
88
+
89
+ Please make sure you have the correct access rights
90
+ and the repository exists.
91
+ ec2-user:~/environment/ver1.0 (master) $
92
+ ```
93
+
54
94
  せっかく初めてのデプロイが出来たのに更新が出来なくてツライです・・
55
95
  アドバイスよろしくお願いします!

2

一部モザイク

2019/07/07 04:08

投稿

k.chisato
k.chisato

スコア18

title CHANGED
File without changes
body CHANGED
@@ -35,10 +35,10 @@
35
35
  ```
36
36
  ec2-user:~/environment/ver1.0 (master) $ heroku login
37
37
  heroku: Press any key to open up the browser to login or q to exit:
38
- Opening browser to https://cli-auth.heroku.com/auth/browser/797a573e-1c66-4e8b-b299-790ccdfa9b61
38
+ Opening browser to https://cli-auth.heroku.com/auth/browser/797a573e-○○-4e8b-b299-790ccdfa9b61
39
39
  › Warning: Cannot open browser.
40
40
  Logging in... done
41
- Logged in as kenmiura0517@gmail.com
41
+ Logged in as ○○@gmail.com
42
42
  ec2-user:~/environment/ver1.0 (master) $ git status
43
43
  On branch master
44
44
  nothing to commit, working tree clean

1

”git status”、”git add .”を試した結果を追加

2019/07/06 14:17

投稿

k.chisato
k.chisato

スコア18

title CHANGED
File without changes
body CHANGED
@@ -31,5 +31,25 @@
31
31
  and the repository exists.
32
32
  ```
33
33
 
34
+ ### ”git status”、”git add .”を試した結果
35
+ ```
36
+ ec2-user:~/environment/ver1.0 (master) $ heroku login
37
+ heroku: Press any key to open up the browser to login or q to exit:
38
+ Opening browser to https://cli-auth.heroku.com/auth/browser/797a573e-1c66-4e8b-b299-790ccdfa9b61
39
+ › Warning: Cannot open browser.
40
+ Logging in... done
41
+ Logged in as kenmiura0517@gmail.com
42
+ ec2-user:~/environment/ver1.0 (master) $ git status
43
+ On branch master
44
+ nothing to commit, working tree clean
45
+ ec2-user:~/environment/ver1.0 (master) $ git add .
46
+ ec2-user:~/environment/ver1.0 (master) $ git commit -m "test2"
47
+ On branch master
48
+ nothing to commit, working tree clean
49
+ ec2-user:~/environment/ver1.0 (master) $ git status
50
+ On branch master
51
+ nothing to commit, working tree clean
52
+ ```
53
+
34
54
  せっかく初めてのデプロイが出来たのに更新が出来なくてツライです・・
35
55
  アドバイスよろしくお願いします!