質問編集履歴
2
追記を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -161,3 +161,95 @@
|
|
161
161
|
Herokuに詳しい方がいましたらご回答いただけないでしょうか
|
162
162
|
|
163
163
|
よろしくお願いいたします。
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
追記 --
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
herokuアプリを作成しなおしてビルドを行ってからサイトにアクセスした時のログが以下となりました。
|
172
|
+
|
173
|
+
```
|
174
|
+
|
175
|
+
$ heroku logs --tail
|
176
|
+
|
177
|
+
2020-12-09T00:55:25.690892+00:00 app[api]: Initial release by user xxx@yyy.com
|
178
|
+
|
179
|
+
2020-12-09T00:55:25.690892+00:00 app[api]: Release v1 created by user xxx@yyy.com
|
180
|
+
|
181
|
+
2020-12-09T00:55:25.936038+00:00 app[api]: Enable Logplex by user xxx@yyy.com
|
182
|
+
|
183
|
+
2020-12-09T00:55:25.936038+00:00 app[api]: Release v2 created by user xxx@yyy.com
|
184
|
+
|
185
|
+
2020-12-09T00:56:22.000000+00:00 app[api]: Build started by user xxx@yyy.com
|
186
|
+
|
187
|
+
2020-12-09T00:57:32.131755+00:00 app[api]: Release v3 created by user xxx@yyy.com
|
188
|
+
|
189
|
+
2020-12-09T00:57:32.131755+00:00 app[api]: Deploy 709afb99 by user xxx@yyy.com
|
190
|
+
|
191
|
+
2020-12-09T00:57:32.149495+00:00 app[api]: Scaled to web@1:Free by user xxx@yyy.com
|
192
|
+
|
193
|
+
2020-12-09T00:57:37.000000+00:00 app[api]: Build succeeded
|
194
|
+
|
195
|
+
2020-12-09T00:57:38.225770+00:00 heroku[web.1]: Starting process with command `npm start`
|
196
|
+
|
197
|
+
2020-12-09T00:57:40.510930+00:00 app[web.1]:
|
198
|
+
|
199
|
+
2020-12-09T00:57:40.510951+00:00 app[web.1]: > sample@1.0.0 start /app
|
200
|
+
|
201
|
+
2020-12-09T00:57:40.510951+00:00 app[web.1]: > nuxt start
|
202
|
+
|
203
|
+
2020-12-09T00:57:40.510952+00:00 app[web.1]:
|
204
|
+
|
205
|
+
2020-12-09T00:57:41.162722+00:00 app[web.1]: ℹ Register basic auth module to server middleware
|
206
|
+
|
207
|
+
2020-12-09T00:57:42.328173+00:00 app[web.1]: ℹ Listening on: http://localhost:49163/
|
208
|
+
|
209
|
+
2020-12-09T00:58:38.593139+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
|
210
|
+
|
211
|
+
2020-12-09T00:58:38.608593+00:00 heroku[web.1]: Stopping process with SIGKILL
|
212
|
+
|
213
|
+
2020-12-09T00:58:38.684549+00:00 heroku[web.1]: Process exited with status 137
|
214
|
+
|
215
|
+
2020-12-09T00:58:38.727025+00:00 heroku[web.1]: State changed from starting to crashed
|
216
|
+
|
217
|
+
2020-12-09T00:58:38.733132+00:00 heroku[web.1]: State changed from crashed to starting
|
218
|
+
|
219
|
+
2020-12-09T00:58:44.197169+00:00 heroku[web.1]: Starting process with command `npm start`
|
220
|
+
|
221
|
+
2020-12-09T00:58:46.538104+00:00 app[web.1]:
|
222
|
+
|
223
|
+
2020-12-09T00:58:46.538151+00:00 app[web.1]: > sample@1.0.0 start /app
|
224
|
+
|
225
|
+
2020-12-09T00:58:46.538152+00:00 app[web.1]: > nuxt start
|
226
|
+
|
227
|
+
2020-12-09T00:58:46.538152+00:00 app[web.1]:
|
228
|
+
|
229
|
+
2020-12-09T00:58:47.110118+00:00 app[web.1]: ℹ Register basic auth module to server middleware
|
230
|
+
|
231
|
+
2020-12-09T00:58:48.489510+00:00 app[web.1]: ℹ Listening on: http://localhost:52544/
|
232
|
+
|
233
|
+
2020-12-09T00:59:25.285136+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=sample.herokuapp.com request_id=f7bf45e1-68bd-4330-8620-5af47b5c8389 fwd="124.213.91.62" dyno= connect= service= status=503 bytes= protocol=https
|
234
|
+
|
235
|
+
2020-12-09T00:59:44.883640+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
|
236
|
+
|
237
|
+
2020-12-09T00:59:44.907961+00:00 heroku[web.1]: Stopping process with SIGKILL
|
238
|
+
|
239
|
+
2020-12-09T00:59:44.935326+00:00 app[web.1]: Error waiting for process to terminate: No child processes
|
240
|
+
|
241
|
+
2020-12-09T00:59:45.003280+00:00 heroku[web.1]: Process exited with status 22
|
242
|
+
|
243
|
+
2020-12-09T00:59:45.050395+00:00 heroku[web.1]: State changed from starting to crashed
|
244
|
+
|
245
|
+
2020-12-09T00:59:47.690115+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sample.herokuapp.com request_id=6be05ff0-a870-487f-8cc4-c60bb0a34b01 fwd="124.213.91.62" dyno= connect= service= status=503 bytes= protocol=https
|
246
|
+
|
247
|
+
2020-12-09T00:59:48.009833+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sample.herokuapp.com request_id=8999f523-a238-44be-a429-836a15934bf4 fwd="124.213.91.62" dyno= connect= service= status=503 bytes= protocol=https
|
248
|
+
|
249
|
+
```
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
Web process failed to bind to $PORT within 60 seconds of launchというエラーが発生しており
|
254
|
+
|
255
|
+
index.jsのポート設定をするようなのですが、nuxtアプリでどのように設定するか現在、確認中です。
|
1
package.jsonの中身を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -104,6 +104,60 @@
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
|
+
package.jsonの中身は以下となっています。
|
108
|
+
|
109
|
+
```json
|
110
|
+
|
111
|
+
{
|
112
|
+
|
113
|
+
"name": "sample",
|
114
|
+
|
115
|
+
"version": "1.0.0",
|
116
|
+
|
117
|
+
"private": true,
|
118
|
+
|
119
|
+
"scripts": {
|
120
|
+
|
121
|
+
"dev": "nuxt",
|
122
|
+
|
123
|
+
"build": "nuxt build",
|
124
|
+
|
125
|
+
"start": "nuxt start",
|
126
|
+
|
127
|
+
"generate": "nuxt generate",
|
128
|
+
|
129
|
+
"heroku-postbuild": "npm run build"
|
130
|
+
|
131
|
+
},
|
132
|
+
|
133
|
+
"dependencies": {
|
134
|
+
|
135
|
+
"core-js": "^3.6.5",
|
136
|
+
|
137
|
+
"lodash": "^4.17.20",
|
138
|
+
|
139
|
+
"markdown-it": "^12.0.2",
|
140
|
+
|
141
|
+
"nuxt": "^2.14.6",
|
142
|
+
|
143
|
+
"nuxt-basic-auth-module": "^1.3.3"
|
144
|
+
|
145
|
+
},
|
146
|
+
|
147
|
+
"devDependencies": {
|
148
|
+
|
149
|
+
"eslint": "^7.15.0",
|
150
|
+
|
151
|
+
"eslint-plugin-vue": "^7.2.0"
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
```
|
158
|
+
|
159
|
+
|
160
|
+
|
107
161
|
Herokuに詳しい方がいましたらご回答いただけないでしょうか
|
108
162
|
|
109
163
|
よろしくお願いいたします。
|