質問編集履歴
2
追記を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -79,4 +79,50 @@
|
|
79
79
|
```
|
80
80
|
|
81
81
|
Herokuに詳しい方がいましたらご回答いただけないでしょうか
|
82
|
-
よろしくお願いいたします。
|
82
|
+
よろしくお願いいたします。
|
83
|
+
|
84
|
+
追記 --
|
85
|
+
|
86
|
+
herokuアプリを作成しなおしてビルドを行ってからサイトにアクセスした時のログが以下となりました。
|
87
|
+
```
|
88
|
+
$ heroku logs --tail
|
89
|
+
2020-12-09T00:55:25.690892+00:00 app[api]: Initial release by user xxx@yyy.com
|
90
|
+
2020-12-09T00:55:25.690892+00:00 app[api]: Release v1 created by user xxx@yyy.com
|
91
|
+
2020-12-09T00:55:25.936038+00:00 app[api]: Enable Logplex by user xxx@yyy.com
|
92
|
+
2020-12-09T00:55:25.936038+00:00 app[api]: Release v2 created by user xxx@yyy.com
|
93
|
+
2020-12-09T00:56:22.000000+00:00 app[api]: Build started by user xxx@yyy.com
|
94
|
+
2020-12-09T00:57:32.131755+00:00 app[api]: Release v3 created by user xxx@yyy.com
|
95
|
+
2020-12-09T00:57:32.131755+00:00 app[api]: Deploy 709afb99 by user xxx@yyy.com
|
96
|
+
2020-12-09T00:57:32.149495+00:00 app[api]: Scaled to web@1:Free by user xxx@yyy.com
|
97
|
+
2020-12-09T00:57:37.000000+00:00 app[api]: Build succeeded
|
98
|
+
2020-12-09T00:57:38.225770+00:00 heroku[web.1]: Starting process with command `npm start`
|
99
|
+
2020-12-09T00:57:40.510930+00:00 app[web.1]:
|
100
|
+
2020-12-09T00:57:40.510951+00:00 app[web.1]: > sample@1.0.0 start /app
|
101
|
+
2020-12-09T00:57:40.510951+00:00 app[web.1]: > nuxt start
|
102
|
+
2020-12-09T00:57:40.510952+00:00 app[web.1]:
|
103
|
+
2020-12-09T00:57:41.162722+00:00 app[web.1]: ℹ Register basic auth module to server middleware
|
104
|
+
2020-12-09T00:57:42.328173+00:00 app[web.1]: ℹ Listening on: http://localhost:49163/
|
105
|
+
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
|
106
|
+
2020-12-09T00:58:38.608593+00:00 heroku[web.1]: Stopping process with SIGKILL
|
107
|
+
2020-12-09T00:58:38.684549+00:00 heroku[web.1]: Process exited with status 137
|
108
|
+
2020-12-09T00:58:38.727025+00:00 heroku[web.1]: State changed from starting to crashed
|
109
|
+
2020-12-09T00:58:38.733132+00:00 heroku[web.1]: State changed from crashed to starting
|
110
|
+
2020-12-09T00:58:44.197169+00:00 heroku[web.1]: Starting process with command `npm start`
|
111
|
+
2020-12-09T00:58:46.538104+00:00 app[web.1]:
|
112
|
+
2020-12-09T00:58:46.538151+00:00 app[web.1]: > sample@1.0.0 start /app
|
113
|
+
2020-12-09T00:58:46.538152+00:00 app[web.1]: > nuxt start
|
114
|
+
2020-12-09T00:58:46.538152+00:00 app[web.1]:
|
115
|
+
2020-12-09T00:58:47.110118+00:00 app[web.1]: ℹ Register basic auth module to server middleware
|
116
|
+
2020-12-09T00:58:48.489510+00:00 app[web.1]: ℹ Listening on: http://localhost:52544/
|
117
|
+
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
|
118
|
+
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
|
119
|
+
2020-12-09T00:59:44.907961+00:00 heroku[web.1]: Stopping process with SIGKILL
|
120
|
+
2020-12-09T00:59:44.935326+00:00 app[web.1]: Error waiting for process to terminate: No child processes
|
121
|
+
2020-12-09T00:59:45.003280+00:00 heroku[web.1]: Process exited with status 22
|
122
|
+
2020-12-09T00:59:45.050395+00:00 heroku[web.1]: State changed from starting to crashed
|
123
|
+
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
|
124
|
+
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
|
125
|
+
```
|
126
|
+
|
127
|
+
Web process failed to bind to $PORT within 60 seconds of launchというエラーが発生しており
|
128
|
+
index.jsのポート設定をするようなのですが、nuxtアプリでどのように設定するか現在、確認中です。
|
1
package.jsonの中身を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -51,5 +51,32 @@
|
|
51
51
|
ちなみにherokuにpushしたアプリの構成は以下となっております。
|
52
52
|

|
53
53
|
|
54
|
+
package.jsonの中身は以下となっています。
|
55
|
+
```json
|
56
|
+
{
|
57
|
+
"name": "sample",
|
58
|
+
"version": "1.0.0",
|
59
|
+
"private": true,
|
60
|
+
"scripts": {
|
61
|
+
"dev": "nuxt",
|
62
|
+
"build": "nuxt build",
|
63
|
+
"start": "nuxt start",
|
64
|
+
"generate": "nuxt generate",
|
65
|
+
"heroku-postbuild": "npm run build"
|
66
|
+
},
|
67
|
+
"dependencies": {
|
68
|
+
"core-js": "^3.6.5",
|
69
|
+
"lodash": "^4.17.20",
|
70
|
+
"markdown-it": "^12.0.2",
|
71
|
+
"nuxt": "^2.14.6",
|
72
|
+
"nuxt-basic-auth-module": "^1.3.3"
|
73
|
+
},
|
74
|
+
"devDependencies": {
|
75
|
+
"eslint": "^7.15.0",
|
76
|
+
"eslint-plugin-vue": "^7.2.0"
|
77
|
+
}
|
78
|
+
}
|
79
|
+
```
|
80
|
+
|
54
81
|
Herokuに詳しい方がいましたらご回答いただけないでしょうか
|
55
82
|
よろしくお願いいたします。
|