質問編集履歴
5
heroku logs -t をテキストに変更しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,14 +106,16 @@
|
|
106
106
|
|
107
107
|
Completed 500 Internal Server Error in 1540ms (ActiveRecord: 0.0ms | Allocations: 714993)
|
108
108
|
|
109
|
-
|
110
|
-
|
111
|
-
heroku logs -t
|
112
|
-
|
113
|
-
|
114
|
-
|
115
109
|
```
|
116
110
|
|
111
|
+
|
112
|
+
|
113
|
+
### heroku logs -t
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
```
|
118
|
+
|
117
119
|
2021-10-13T12:51:20.000000+00:00 app[api]: Build started by user ~@gmail.com
|
118
120
|
|
119
121
|
2021-10-13T12:52:06.196176+00:00 app[api]: Deploy 2fa80624 by user ~@gmail.com
|
4
heroku logs -t をテキストに変更しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,7 +112,91 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
|
115
|
+
```
|
116
|
+
|
117
|
+
2021-10-13T12:51:20.000000+00:00 app[api]: Build started by user ~@gmail.com
|
118
|
+
|
119
|
+
2021-10-13T12:52:06.196176+00:00 app[api]: Deploy 2fa80624 by user ~@gmail.com
|
120
|
+
|
121
|
+
2021-10-13T12:52:06.196176+00:00 app[api]: Release v22 created by user ~@gmail.com
|
122
|
+
|
123
|
+
2021-10-13T12:52:08.912008+00:00 heroku[web.1]: State changed from down to starting
|
124
|
+
|
125
|
+
2021-10-13T12:52:13.262848+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
|
126
|
+
|
127
|
+
2021-10-13T12:52:14.370997+00:00 app[web.1]: Puma starting in single mode...
|
128
|
+
|
129
|
+
2021-10-13T12:52:14.371036+00:00 app[web.1]: * Version 4.3.6 (ruby 2.7.4-p191), codename: Mysterious Traveller
|
130
|
+
|
131
|
+
2021-10-13T12:52:14.371037+00:00 app[web.1]: * Min threads: 5, max threads: 5
|
132
|
+
|
133
|
+
2021-10-13T12:52:14.371037+00:00 app[web.1]: * Environment: production
|
134
|
+
|
135
|
+
2021-10-13T12:52:15.000000+00:00 app[api]: Build succeeded
|
136
|
+
|
137
|
+
2021-10-13T12:52:17.121584+00:00 app[web.1]: * Listening on tcp://0.0.0.0:18528
|
138
|
+
|
139
|
+
2021-10-13T12:52:17.121821+00:00 app[web.1]: Use Ctrl-C to stop
|
140
|
+
|
141
|
+
2021-10-13T12:52:17.190858+00:00 heroku[web.1]: State changed from starting to up
|
142
|
+
|
143
|
+
2021-10-13T12:52:19.996257+00:00 app[web.1]: I, [2021-10-13T12:52:19.996156 #4] INFO -- : [b7dba1f4-0c8e-408b-80eb-3f302a024518] Started GET "/" for 60.64.7.197 at 2021-10-13 12:52:19 +0000
|
144
|
+
|
145
|
+
2021-10-13T12:52:19.999126+00:00 app[web.1]: I, [2021-10-13T12:52:19.999043 #4] INFO -- : [b7dba1f4-0c8e-408b-80eb-3f302a024518] Processing by StaticPagesController#home as HTML
|
146
|
+
|
147
|
+
2021-10-13T12:52:20.009011+00:00 app[web.1]: I, [2021-10-13T12:52:20.008931 #4] INFO -- : [b7dba1f4-0c8e-408b-80eb-3f302a024518] Rendering static_pages/home.html.erb within layouts/application
|
148
|
+
|
149
|
+
2021-10-13T12:52:20.010211+00:00 app[web.1]: I, [2021-10-13T12:52:20.010140 #4] INFO -- : [b7dba1f4-0c8e-408b-80eb-3f302a024518] Rendered static_pages/home.html.erb within layouts/application (Duration: 1.0ms | Allocations: 284)
|
150
|
+
|
151
|
+
2021-10-13T12:52:20.013181+00:00 app[web.1]: I, [2021-10-13T12:52:20.013128 #4] INFO -- : [b7dba1f4-0c8e-408b-80eb-3f302a024518] Completed 500 Internal Server Error in 13ms (Allocations: 2347)
|
152
|
+
|
153
|
+
2021-10-13T12:52:20.013882+00:00 heroku[router]: at=info method=GET path="/" host= ~.herokuapp.com request_id=b7dba1f4-0c8e-408b-80eb-3f302a024518 fwd="60.64.7.197" dyno=web.1 connect=0ms service=20ms status=500 bytes=1827 protocol=https
|
154
|
+
|
155
|
+
2021-10-13T12:52:20.014340+00:00 app[web.1]: F, [2021-10-13T12:52:20.014259 #4] FATAL -- : [b7dba1f4-0c8e-408b-80eb-3f302a024518]
|
156
|
+
|
157
|
+
2021-10-13T12:52:20.014341+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] ActionView::Template::Error (Webpacker can't find application in /app/public/packs/manifest.json. Possible causes:
|
158
|
+
|
159
|
+
2021-10-13T12:52:20.014342+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
|
160
|
+
|
161
|
+
2021-10-13T12:52:20.014342+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
|
162
|
+
|
163
|
+
2021-10-13T12:52:20.014343+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
|
164
|
+
|
165
|
+
2021-10-13T12:52:20.014343+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
|
166
|
+
|
167
|
+
2021-10-13T12:52:20.014344+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
|
168
|
+
|
169
|
+
2021-10-13T12:52:20.014345+00:00 app[web.1]: Your manifest contains:
|
170
|
+
|
171
|
+
2021-10-13T12:52:20.014345+00:00 app[web.1]: {
|
172
|
+
|
173
|
+
2021-10-13T12:52:20.014345+00:00 app[web.1]: }
|
174
|
+
|
175
|
+
2021-10-13T12:52:20.014346+00:00 app[web.1]: ):
|
176
|
+
|
177
|
+
2021-10-13T12:52:20.014346+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] 6: <%= csp_meta_tag %>
|
178
|
+
|
179
|
+
2021-10-13T12:52:20.014346+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] 7: <%= stylesheet_link_tag 'application', media: 'all',
|
180
|
+
|
181
|
+
2021-10-13T12:52:20.014351+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] 8: 'data-turbolinks-track': 'reload' %>
|
182
|
+
|
183
|
+
2021-10-13T12:52:20.014352+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] 9 <%= javascript_pack_tag 'application',
|
184
|
+
|
185
|
+
2021-10-13T12:52:20.014352+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] 10: 'data-turbolinks-track': 'reload' %>
|
186
|
+
|
187
|
+
2021-10-13T12:52:20.014352+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] 11: <%= render 'layouts/shim' %>
|
188
|
+
|
189
|
+
2021-10-13T12:52:20.014352+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] 12: </head>
|
190
|
+
|
191
|
+
2021-10-13T12:52:20.014353+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518]
|
192
|
+
|
193
|
+
2021-10-13T12:52:20.014353+00:00 app[web.1]: [b7dba1f4-0c8e-408b-80eb-3f302a024518] app/views/layouts/application.html.erb:9
|
194
|
+
|
195
|
+
2021-10-13T12:52:20.303090+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=~.herokuapp.com request_id=3f37830e-7988-425b-a4b2-e39ed7862d70 fwd="60.64.7.197" dyno=web.1 connect=0ms service=5ms status=200 bytes=143 protocol=https
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
```
|
116
200
|
|
117
201
|
|
118
202
|
|
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,145 +108,11 @@
|
|
108
108
|
|
109
109
|
|
110
110
|
|
111
|
-
|
111
|
+
heroku logs -t
|
112
112
|
|
113
|
-
#### heroku logs -t
|
114
113
|
|
115
|
-
```
|
116
114
|
|
117
|
-
|
118
|
-
|
119
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 7: <%= stylesheet_link_tag 'application', media: 'all',
|
120
|
-
|
121
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 8: 'data-turbolinks-track': 'reload' %>
|
122
|
-
|
123
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 9: <%= javascript_pack_tag 'application',
|
124
|
-
|
125
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 10: 'data-turbolinks-track': 'reload' %>
|
126
|
-
|
127
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 11: <%= render 'layouts/shim' %>
|
128
|
-
|
129
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 12: </head>
|
130
|
-
|
131
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219]
|
132
|
-
|
133
|
-
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] app/views/layouts/application.html.erb:9
|
134
|
-
|
135
|
-
heroku[router]: at=info method=GET path="/" host=glacial-lake-37482.herokuapp.com request_id=82cb2a73-8a62-401b-9ec6-b60aa96b0219 fwd="60.64.7.197" dyno=web.1 connect=0ms service=831ms status=500 bytes=1827 protocol=https
|
136
|
-
|
137
|
-
heroku[router]: at=info method=GET path="/favicon.ico" host=glacial-lake-37482.herokuapp.com request_id=d1700c95-7486-419d-bb89-ebe829ac1549 fwd="60.64.7.197" dyno=web.1 connect=0ms service=5ms status=304 bytes=48 protocol=https
|
138
|
-
|
139
|
-
heroku[web.1]: Idling
|
140
|
-
|
141
|
-
heroku[web.1]: State changed from up to down
|
142
|
-
|
143
|
-
heroku[web.1]: Stopping all processes with SIGTERM
|
144
|
-
|
145
|
-
app[web.1]: - Gracefully stopping, waiting for requests to finish
|
146
|
-
|
147
|
-
app[web.1]: === puma shutdown: 2021-10-10 12:03:32 +0000 ===
|
148
|
-
|
149
|
-
app[web.1]: - Goodbye!
|
150
|
-
|
151
|
-
heroku[web.1]: Process exited with status 143
|
152
|
-
|
153
|
-
app[api]: Build started by user 〇〇@gmail.com
|
154
|
-
|
155
|
-
app[api]: Deploy bdc95545 by user 〇〇@gmail.com
|
156
|
-
|
157
|
-
app[api]: Release v21 created by user 〇〇@gmail.com
|
158
|
-
|
159
|
-
heroku[web.1]: State changed from down to starting
|
160
|
-
|
161
|
-
heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
|
162
|
-
|
163
|
-
app[web.1]: Puma starting in single mode...
|
164
|
-
|
165
|
-
app[web.1]: * Version 4.3.6 (ruby 2.7.4-p191), codename: Mysterious Traveller
|
166
|
-
|
167
|
-
app[web.1]: * Min threads: 5, max threads: 5
|
168
|
-
|
169
|
-
app[web.1]: * Environment: production
|
170
|
-
|
171
|
-
app[api]: Build succeeded
|
172
|
-
|
173
|
-
app[web.1]: * Listening on tcp://0.0.0.0:20308
|
174
|
-
|
175
|
-
app[web.1]: Use Ctrl-C to stop
|
176
|
-
|
177
|
-
heroku[web.1]: State changed from starting to up
|
178
|
-
|
179
|
-
app[web.1]: I, [2021-10-10T12:30:03.715279 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Started GET "/" for 60.64.7.197 at 2021-10-10 12:30:03 +0000
|
180
|
-
|
181
|
-
app[web.1]: I, [2021-10-10T12:30:03.718373 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Processing by StaticPagesController#home as HTML
|
182
|
-
|
183
|
-
app[web.1]: I, [2021-10-10T12:30:03.724305 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Rendering static_pages/home.html.erb within layouts/application
|
184
|
-
|
185
|
-
app[web.1]: I, [2021-10-10T12:30:03.725123 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Rendered static_pages/home.html.erb within layouts/application (Duration: 0.7ms | Allocations: 284)
|
186
|
-
|
187
|
-
app[web.1]: I, [2021-10-10T12:30:03.727507 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker] Compiling…
|
188
|
-
|
189
|
-
app[web.1]: I, [2021-10-10T12:30:04.474162 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker] Compiled all packs in /app/public/packs
|
190
|
-
|
191
|
-
app[web.1]: E, [2021-10-10T12:30:04.474232 #4] ERROR -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker] One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
|
192
|
-
|
193
|
-
app[web.1]: - webpack-cli (https://github.com/webpack/webpack-cli)
|
194
|
-
|
195
|
-
app[web.1]: The original webpack full-featured CLI.
|
196
|
-
|
197
|
-
app[web.1]: We will use "yarn" to install the CLI via "yarn add -D".
|
198
|
-
|
199
|
-
app[web.1]: Do you want to install 'webpack-cli' (yes/no):
|
200
|
-
|
201
|
-
app[web.1]: I, [2021-10-10T12:30:04.474256 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker]
|
202
|
-
|
203
|
-
app[web.1]: I, [2021-10-10T12:30:04.476037 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Completed 500 Internal Server Error in 758ms (Allocations: 3556)
|
204
|
-
|
205
|
-
app[web.1]: F, [2021-10-10T12:30:04.476843 #4] FATAL -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345]
|
206
|
-
|
207
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] ActionView::Template::Error (Webpacker can't find application in /app/public/packs/manifest.json. Possible causes:
|
208
|
-
|
209
|
-
app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
|
210
|
-
|
211
|
-
app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
|
212
|
-
|
213
|
-
app[web.1]: 2. webpack has not yet re-run to reflect updates.
|
214
|
-
|
215
|
-
app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
|
216
|
-
|
217
|
-
app[web.1]: 4. Your webpack configuration is not creating a manifest.
|
218
|
-
|
219
|
-
app[web.1]: Your manifest contains:
|
220
|
-
|
221
|
-
app[web.1]: {
|
222
|
-
|
223
|
-
app[web.1]: }
|
224
|
-
|
225
|
-
app[web.1]: ):
|
226
|
-
|
227
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 6: <%= csp_meta_tag %>
|
228
|
-
|
229
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 7: <%= stylesheet_link_tag 'application', media: 'all',
|
230
|
-
|
231
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 8: 'data-turbolinks-track': 'reload' %>
|
232
|
-
|
233
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 9: <%= javascript_pack_tag 'application',
|
234
|
-
|
235
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 10: 'data-turbolinks-track': 'reload' %>
|
236
|
-
|
237
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 11: <%= render 'layouts/shim' %>
|
238
|
-
|
239
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 12: </head>
|
240
|
-
|
241
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345]
|
242
|
-
|
243
|
-
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] app/views/layouts/application.html.erb:9
|
244
|
-
|
245
|
-
heroku[router]: at=info method=GET path="/" host=glacial-lake-37482.herokuapp.com request_id=fb33e14d-b5a2-45df-8957-4f46df7fd345 fwd="60.64.7.197" dyno=web.1 connect=0ms service=763ms status=500 bytes=1827 protocol=https
|
246
|
-
|
247
|
-
heroku[router]: at=info method=GET path="/favicon.ico" host=glacial-lake-37482.herokuapp.com request_id=837ead99-58fd-48b2-9330-2bd3352e2b8d fwd="60.64.7.197" dyno=web.1 connect=0ms service=5ms status=200 bytes=143 protocol=https
|
248
|
-
|
249
|
-
```
|
115
|
+
更新されたので後ほど記載し直します。
|
250
116
|
|
251
117
|
|
252
118
|
|
2
個人情報の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -150,11 +150,11 @@
|
|
150
150
|
|
151
151
|
heroku[web.1]: Process exited with status 143
|
152
152
|
|
153
|
-
app[api]: Build started by user
|
153
|
+
app[api]: Build started by user 〇〇@gmail.com
|
154
|
-
|
154
|
+
|
155
|
-
app[api]: Deploy bdc95545 by user
|
155
|
+
app[api]: Deploy bdc95545 by user 〇〇@gmail.com
|
156
|
-
|
156
|
+
|
157
|
-
app[api]: Release v21 created by user
|
157
|
+
app[api]: Release v21 created by user 〇〇@gmail.com
|
158
158
|
|
159
159
|
heroku[web.1]: State changed from down to starting
|
160
160
|
|
1
heroku logs -t をテキストに変更しました。また、文字数都合によりlogsの初めに記載される時間は削除させて戴きました。git push herokuを写真に置き換えさせて戴きまし
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,378 +14,252 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
|
18
|
-
|
19
17
|
### 現状
|
20
18
|
|
21
|
-
#### git push heroku
|
19
|
+
#### git push heroku
|
20
|
+
|
21
|
+
![イメージ説明](e1f183dc0c295d89cb845891b316d4a1.png)
|
22
|
+
|
23
|
+
![イメージ説明](69358b7754132b8e357e15f19dc0bb16.png)
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
![イメージ説明](17b3053030203cb0b007bd286244b4c5.png)
|
28
|
+
|
29
|
+
#### development.log
|
30
|
+
|
31
|
+
```development.log
|
32
|
+
|
33
|
+
Started GET "/" for 60.64.7.197 at 2021-10-09 01:36:55 +0000
|
34
|
+
|
35
|
+
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
36
|
+
|
37
|
+
[1m[35m (4.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
38
|
+
|
39
|
+
Processing by ApplicationController#hello as HTML
|
40
|
+
|
41
|
+
Rendering html template
|
42
|
+
|
43
|
+
Rendered html template (Duration: 0.0ms | Allocations: 5)
|
44
|
+
|
45
|
+
Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.0ms | Allocations: 1809)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
Started GET "/" for 60.64.7.197 at 2021-10-09 01:36:56 +0000
|
50
|
+
|
51
|
+
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
52
|
+
|
53
|
+
Processing by ApplicationController#hello as HTML
|
54
|
+
|
55
|
+
Rendering html template
|
56
|
+
|
57
|
+
Rendered html template (Duration: 0.0ms | Allocations: 3)
|
58
|
+
|
59
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms | Allocations: 292)
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
Started GET "/" for 60.64.7.197 at 2021-10-09 01:46:56 +0000
|
64
|
+
|
65
|
+
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
66
|
+
|
67
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
68
|
+
|
69
|
+
Processing by ApplicationController#hello as HTML
|
70
|
+
|
71
|
+
Rendering html template
|
72
|
+
|
73
|
+
Rendered html template (Duration: 0.0ms | Allocations: 3)
|
74
|
+
|
75
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms | Allocations: 451)
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
Started GET "/static_pages/home" for 60.64.7.197 at 2021-10-09 01:48:10 +0000
|
80
|
+
|
81
|
+
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
82
|
+
|
83
|
+
Processing by StaticPagesController#home as HTML
|
84
|
+
|
85
|
+
Rendering static_pages/home.html.erb within layouts/application
|
86
|
+
|
87
|
+
Rendered static_pages/home.html.erb within layouts/application (Duration: 1.5ms | Allocations: 365)
|
88
|
+
|
89
|
+
[Webpacker] Compiling…
|
90
|
+
|
91
|
+
[Webpacker] Compiled all packs in /home/ubuntu/environment/tweet2/public/packs
|
92
|
+
|
93
|
+
[Webpacker] warning ../../package.json: No license field
|
94
|
+
|
95
|
+
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
|
96
|
+
|
97
|
+
- webpack-cli (https://github.com/webpack/webpack-cli)
|
98
|
+
|
99
|
+
The original webpack full-featured CLI.
|
100
|
+
|
101
|
+
We will use "yarn" to install the CLI via "yarn add -D".
|
102
|
+
|
103
|
+
Do you want to install 'webpack-cli' (yes/no):
|
104
|
+
|
105
|
+
[Webpacker]
|
106
|
+
|
107
|
+
Completed 500 Internal Server Error in 1540ms (ActiveRecord: 0.0ms | Allocations: 714993)
|
108
|
+
|
109
|
+
|
22
110
|
|
23
111
|
```
|
24
112
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
----
|
32
|
-
|
33
|
-
----
|
34
|
-
|
35
|
-
----
|
36
|
-
|
37
|
-
----
|
38
|
-
|
39
|
-
----
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
Gems in the groups 'development' and 'test' were not installed.
|
174
|
-
|
175
|
-
Bundled gems are installed into `./vendor/bundle`
|
176
|
-
|
177
|
-
Bundle completed (1.57s)
|
178
|
-
|
179
|
-
Cleaning up the bundler cache.
|
180
|
-
|
181
|
-
-----> Installing node-v12.16.2-linux-x64
|
182
|
-
|
183
|
-
-----> Installing yarn-v1.22.4
|
184
|
-
|
185
|
-
-----> Detecting rake tasks
|
186
|
-
|
187
|
-
-----> Preparing app for Rails asset pipeline
|
188
|
-
|
189
|
-
Running: rake assets:precompile
|
190
|
-
|
191
|
-
yarn install v1.22.4
|
192
|
-
|
193
|
-
[1/4] Resolving packages...
|
194
|
-
|
195
|
-
[2/4] Fetching packages...
|
196
|
-
|
197
|
-
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
|
198
|
-
|
199
|
-
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
|
200
|
-
|
201
|
-
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
|
202
|
-
|
203
|
-
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
|
204
|
-
|
205
|
-
[3/4] Linking dependencies...
|
206
|
-
|
207
|
-
[4/4] Building fresh packages...
|
208
|
-
|
209
|
-
Done in 11.11s.
|
210
|
-
|
211
|
-
Compiling…
|
212
|
-
|
213
|
-
Compiled all packs in /tmp/build_b3bdabe1/public/packs
|
214
|
-
|
215
|
-
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
|
216
|
-
|
217
|
-
- webpack-cli (https://github.com/webpack/webpack-cli)
|
218
|
-
|
219
|
-
The original webpack full-featured CLI.
|
220
|
-
|
221
|
-
We will use "yarn" to install the CLI via "yarn add -D".
|
113
|
+
#### heroku logs -t
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
ubuntu:~/environment/tweet2 (master) $ heroku logs -t
|
118
|
+
|
119
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 7: <%= stylesheet_link_tag 'application', media: 'all',
|
120
|
+
|
121
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 8: 'data-turbolinks-track': 'reload' %>
|
122
|
+
|
123
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 9: <%= javascript_pack_tag 'application',
|
124
|
+
|
125
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 10: 'data-turbolinks-track': 'reload' %>
|
126
|
+
|
127
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 11: <%= render 'layouts/shim' %>
|
128
|
+
|
129
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] 12: </head>
|
130
|
+
|
131
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219]
|
132
|
+
|
133
|
+
app[web.1]: [82cb2a73-8a62-401b-9ec6-b60aa96b0219] app/views/layouts/application.html.erb:9
|
134
|
+
|
135
|
+
heroku[router]: at=info method=GET path="/" host=glacial-lake-37482.herokuapp.com request_id=82cb2a73-8a62-401b-9ec6-b60aa96b0219 fwd="60.64.7.197" dyno=web.1 connect=0ms service=831ms status=500 bytes=1827 protocol=https
|
136
|
+
|
137
|
+
heroku[router]: at=info method=GET path="/favicon.ico" host=glacial-lake-37482.herokuapp.com request_id=d1700c95-7486-419d-bb89-ebe829ac1549 fwd="60.64.7.197" dyno=web.1 connect=0ms service=5ms status=304 bytes=48 protocol=https
|
138
|
+
|
139
|
+
heroku[web.1]: Idling
|
140
|
+
|
141
|
+
heroku[web.1]: State changed from up to down
|
142
|
+
|
143
|
+
heroku[web.1]: Stopping all processes with SIGTERM
|
144
|
+
|
145
|
+
app[web.1]: - Gracefully stopping, waiting for requests to finish
|
146
|
+
|
147
|
+
app[web.1]: === puma shutdown: 2021-10-10 12:03:32 +0000 ===
|
148
|
+
|
149
|
+
app[web.1]: - Goodbye!
|
150
|
+
|
151
|
+
heroku[web.1]: Process exited with status 143
|
152
|
+
|
153
|
+
app[api]: Build started by user takeshi.gouda044@gmail.com
|
154
|
+
|
155
|
+
app[api]: Deploy bdc95545 by user takeshi.gouda044@gmail.com
|
156
|
+
|
157
|
+
app[api]: Release v21 created by user takeshi.gouda044@gmail.com
|
158
|
+
|
159
|
+
heroku[web.1]: State changed from down to starting
|
160
|
+
|
161
|
+
heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
|
162
|
+
|
163
|
+
app[web.1]: Puma starting in single mode...
|
164
|
+
|
165
|
+
app[web.1]: * Version 4.3.6 (ruby 2.7.4-p191), codename: Mysterious Traveller
|
166
|
+
|
167
|
+
app[web.1]: * Min threads: 5, max threads: 5
|
168
|
+
|
169
|
+
app[web.1]: * Environment: production
|
170
|
+
|
171
|
+
app[api]: Build succeeded
|
172
|
+
|
173
|
+
app[web.1]: * Listening on tcp://0.0.0.0:20308
|
174
|
+
|
175
|
+
app[web.1]: Use Ctrl-C to stop
|
176
|
+
|
177
|
+
heroku[web.1]: State changed from starting to up
|
178
|
+
|
179
|
+
app[web.1]: I, [2021-10-10T12:30:03.715279 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Started GET "/" for 60.64.7.197 at 2021-10-10 12:30:03 +0000
|
180
|
+
|
181
|
+
app[web.1]: I, [2021-10-10T12:30:03.718373 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Processing by StaticPagesController#home as HTML
|
182
|
+
|
183
|
+
app[web.1]: I, [2021-10-10T12:30:03.724305 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Rendering static_pages/home.html.erb within layouts/application
|
184
|
+
|
185
|
+
app[web.1]: I, [2021-10-10T12:30:03.725123 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Rendered static_pages/home.html.erb within layouts/application (Duration: 0.7ms | Allocations: 284)
|
186
|
+
|
187
|
+
app[web.1]: I, [2021-10-10T12:30:03.727507 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker] Compiling…
|
188
|
+
|
189
|
+
app[web.1]: I, [2021-10-10T12:30:04.474162 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker] Compiled all packs in /app/public/packs
|
190
|
+
|
191
|
+
app[web.1]: E, [2021-10-10T12:30:04.474232 #4] ERROR -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker] One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
|
192
|
+
|
193
|
+
app[web.1]: - webpack-cli (https://github.com/webpack/webpack-cli)
|
194
|
+
|
195
|
+
app[web.1]: The original webpack full-featured CLI.
|
196
|
+
|
197
|
+
app[web.1]: We will use "yarn" to install the CLI via "yarn add -D".
|
198
|
+
|
199
|
+
app[web.1]: Do you want to install 'webpack-cli' (yes/no):
|
200
|
+
|
201
|
+
app[web.1]: I, [2021-10-10T12:30:04.474256 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] [Webpacker]
|
202
|
+
|
203
|
+
app[web.1]: I, [2021-10-10T12:30:04.476037 #4] INFO -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345] Completed 500 Internal Server Error in 758ms (Allocations: 3556)
|
204
|
+
|
205
|
+
app[web.1]: F, [2021-10-10T12:30:04.476843 #4] FATAL -- : [fb33e14d-b5a2-45df-8957-4f46df7fd345]
|
206
|
+
|
207
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] ActionView::Template::Error (Webpacker can't find application in /app/public/packs/manifest.json. Possible causes:
|
208
|
+
|
209
|
+
app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
|
210
|
+
|
211
|
+
app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
|
212
|
+
|
213
|
+
app[web.1]: 2. webpack has not yet re-run to reflect updates.
|
214
|
+
|
215
|
+
app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
|
216
|
+
|
217
|
+
app[web.1]: 4. Your webpack configuration is not creating a manifest.
|
218
|
+
|
219
|
+
app[web.1]: Your manifest contains:
|
220
|
+
|
221
|
+
app[web.1]: {
|
222
|
+
|
223
|
+
app[web.1]: }
|
224
|
+
|
225
|
+
app[web.1]: ):
|
226
|
+
|
227
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 6: <%= csp_meta_tag %>
|
228
|
+
|
229
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 7: <%= stylesheet_link_tag 'application', media: 'all',
|
230
|
+
|
231
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 8: 'data-turbolinks-track': 'reload' %>
|
232
|
+
|
233
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 9: <%= javascript_pack_tag 'application',
|
234
|
+
|
235
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 10: 'data-turbolinks-track': 'reload' %>
|
236
|
+
|
237
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 11: <%= render 'layouts/shim' %>
|
238
|
+
|
239
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] 12: </head>
|
240
|
+
|
241
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345]
|
242
|
+
|
243
|
+
app[web.1]: [fb33e14d-b5a2-45df-8957-4f46df7fd345] app/views/layouts/application.html.erb:9
|
244
|
+
|
245
|
+
heroku[router]: at=info method=GET path="/" host=glacial-lake-37482.herokuapp.com request_id=fb33e14d-b5a2-45df-8957-4f46df7fd345 fwd="60.64.7.197" dyno=web.1 connect=0ms service=763ms status=500 bytes=1827 protocol=https
|
246
|
+
|
247
|
+
heroku[router]: at=info method=GET path="/favicon.ico" host=glacial-lake-37482.herokuapp.com request_id=837ead99-58fd-48b2-9330-2bd3352e2b8d fwd="60.64.7.197" dyno=web.1 connect=0ms service=5ms status=200 bytes=143 protocol=https
|
248
|
+
|
249
|
+
```
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
### 試したこと
|
254
|
+
|
255
|
+
- この前にもherokuにpushしたときに、以下のメッセージがあったので```yarn add webpack-cli -D```を実行しましたが、今回もこのメッセージが表示されました。
|
256
|
+
|
257
|
+
> One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
|
258
|
+
|
259
|
+
(省略)
|
222
260
|
|
223
261
|
Do you want to install 'webpack-cli' (yes/no):
|
224
262
|
|
225
|
-
|
226
|
-
|
227
|
-
Asset precompilation completed (14.69s)
|
228
|
-
|
229
|
-
Cleaning assets
|
230
|
-
|
231
|
-
Running: rake assets:clean
|
232
|
-
|
233
|
-
-----> Detecting rails configuration
|
234
|
-
|
235
|
-
###### WARNING:
|
236
|
-
|
237
|
-
You have not declared a Ruby version in your Gemfile.
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
To declare a Ruby version add this line to your Gemfile:
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
ruby "2.7.4"
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
For more information see:
|
254
|
-
|
255
|
-
https://devcenter.heroku.com/articles/ruby-versions
|
256
|
-
|
257
|
-
-----> Discovering process types
|
258
|
-
|
259
|
-
Procfile declares types -> web
|
260
|
-
|
261
|
-
Default types for buildpack -> console, rake
|
262
|
-
|
263
|
-
-----> Compressing...
|
264
|
-
|
265
|
-
Done: 81.7M
|
266
|
-
|
267
|
-
-----> Launching...
|
268
|
-
|
269
|
-
Released v21
|
270
|
-
|
271
|
-
https://〇〇.herokuapp.com/ deployed to Heroku
|
272
|
-
|
273
|
-
```
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
#### development.log
|
278
|
-
|
279
|
-
```development.log
|
280
|
-
|
281
|
-
Started GET "/" for 60.64.7.197 at 2021-10-09 01:36:55 +0000
|
282
|
-
|
283
|
-
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
284
|
-
|
285
|
-
[1m[35m (4.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
286
|
-
|
287
|
-
Processing by ApplicationController#hello as HTML
|
288
|
-
|
289
|
-
Rendering html template
|
290
|
-
|
291
|
-
Rendered html template (Duration: 0.0ms | Allocations: 5)
|
292
|
-
|
293
|
-
Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.0ms | Allocations: 1809)
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
Started GET "/" for 60.64.7.197 at 2021-10-09 01:36:56 +0000
|
300
|
-
|
301
|
-
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
302
|
-
|
303
|
-
Processing by ApplicationController#hello as HTML
|
304
|
-
|
305
|
-
Rendering html template
|
306
|
-
|
307
|
-
Rendered html template (Duration: 0.0ms | Allocations: 3)
|
308
|
-
|
309
|
-
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms | Allocations: 292)
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
Started GET "/" for 60.64.7.197 at 2021-10-09 01:46:56 +0000
|
316
|
-
|
317
|
-
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
318
|
-
|
319
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
320
|
-
|
321
|
-
Processing by ApplicationController#hello as HTML
|
322
|
-
|
323
|
-
Rendering html template
|
324
|
-
|
325
|
-
Rendered html template (Duration: 0.0ms | Allocations: 3)
|
326
|
-
|
327
|
-
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms | Allocations: 451)
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
Started GET "/static_pages/home" for 60.64.7.197 at 2021-10-09 01:48:10 +0000
|
334
|
-
|
335
|
-
Cannot render console from 60.64.7.197! Allowed networks: 127.0.0.0/127.255.255.255, ::1
|
336
|
-
|
337
|
-
Processing by StaticPagesController#home as HTML
|
338
|
-
|
339
|
-
Rendering static_pages/home.html.erb within layouts/application
|
340
|
-
|
341
|
-
Rendered static_pages/home.html.erb within layouts/application (Duration: 1.5ms | Allocations: 365)
|
342
|
-
|
343
|
-
[Webpacker] Compiling…
|
344
|
-
|
345
|
-
[Webpacker] Compiled all packs in /home/ubuntu/environment/tweet2/public/packs
|
346
|
-
|
347
|
-
[Webpacker] warning ../../package.json: No license field
|
348
|
-
|
349
|
-
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
|
350
|
-
|
351
|
-
- webpack-cli (https://github.com/webpack/webpack-cli)
|
352
|
-
|
353
|
-
The original webpack full-featured CLI.
|
354
|
-
|
355
|
-
We will use "yarn" to install the CLI via "yarn add -D".
|
356
|
-
|
357
|
-
Do you want to install 'webpack-cli' (yes/no):
|
358
|
-
|
359
|
-
[Webpacker]
|
360
|
-
|
361
|
-
Completed 500 Internal Server Error in 1540ms (ActiveRecord: 0.0ms | Allocations: 714993)
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
```
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
#### heroku logs -t の結果
|
370
|
-
|
371
|
-
![![heroku logs -t の結果](e8f1d93e58671006f6e007e9dc4028fc.jpeg)]
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
### 試したこと
|
376
|
-
|
377
|
-
- この前にもherokuにpushしたときに、以下のメッセージがあったので```yarn add webpack-cli -D```を実行しましたが、今回もこのメッセージが表示されました。
|
378
|
-
|
379
|
-
> One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
|
380
|
-
|
381
|
-
webpack-cli (https://github.com/webpack/webpack-cli)
|
382
|
-
|
383
|
-
The original webpack full-featured CLI.
|
384
|
-
|
385
|
-
We will use "yarn" to install the CLI via "yarn add -D".
|
386
|
-
|
387
|
-
Do you want to install 'webpack-cli' (yes/no):
|
388
|
-
|
389
263
|
|
390
264
|
|
391
265
|
- 似たような状況に遭遇した方々の記事などを参考に、```$ heroku run rails db:migrate```を実行しましたが結果は変わりませんでした。
|