Heroku应用程序已成功部署,但出现应用程序错误

时间:2020-06-09 06:08:33

标签: heroku

我刚刚开始使用Heroku尝试部署网站。

我已经使用create-react-app创建了一个简单的React应用,然后使用Heroku“部署GitHub分支”

应用程序成功部署,但是如果我尝试查看页面,则会收到应用程序错误

heroku logs --tail --app sitetest 

给我

2020-06-08T07:50:13.547801+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-08T07:50:13.547864+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-06-08T07:50:13.548050+00:00 app[web.1]: Starting the development server...
2020-06-08T07:50:13.548050+00:00 app[web.1]: 
2020-06-08T07:50:13.644138+00:00 heroku[web.1]: Process exited with status 0
2020-06-08T07:50:13.679705+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-08T13:31:10.182865+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-08T13:31:20.970821+00:00 heroku[web.1]: Starting process with command `npm start`
2020-06-08T13:31:24.211188+00:00 app[web.1]: 
2020-06-08T13:31:24.211206+00:00 app[web.1]: > sitetest@0.1.0 start /app
2020-06-08T13:31:24.211206+00:00 app[web.1]: > react-scripts start
2020-06-08T13:31:24.211206+00:00 app[web.1]: 
2020-06-08T13:31:27.251391+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.17.28.94/
2020-06-08T13:31:27.251967+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-06-08T13:31:27.252099+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-08T13:31:27.252214+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-06-08T13:31:27.252444+00:00 app[web.1]: Starting the development server...
2020-06-08T13:31:27.252445+00:00 app[web.1]: 
2020-06-08T13:31:27.324328+00:00 heroku[web.1]: Process exited with status 0
2020-06-08T13:31:27.356758+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-08T19:15:35.090701+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-08T19:15:48.055635+00:00 heroku[web.1]: Starting process with command `npm start`
2020-06-08T19:15:50.543194+00:00 app[web.1]: 
2020-06-08T19:15:50.543211+00:00 app[web.1]: > sitetest@0.1.0 start /app
2020-06-08T19:15:50.543211+00:00 app[web.1]: > react-scripts start
2020-06-08T19:15:50.543211+00:00 app[web.1]: 
2020-06-08T19:15:53.362174+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.19.32.142/
2020-06-08T19:15:53.362656+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-06-08T19:15:53.362824+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-08T19:15:53.362907+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-06-08T19:15:53.365718+00:00 app[web.1]: Starting the development server...
2020-06-08T19:15:53.365719+00:00 app[web.1]: 
2020-06-08T19:15:53.472748+00:00 heroku[web.1]: Process exited with status 0
2020-06-08T19:15:53.525714+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-09T01:00:01.740540+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-09T01:00:18.514245+00:00 heroku[web.1]: Starting process with command `npm start`
2020-06-09T01:00:21.332807+00:00 app[web.1]: 
2020-06-09T01:00:21.332827+00:00 app[web.1]: > sitetest@0.1.0 start /app
2020-06-09T01:00:21.332827+00:00 app[web.1]: > react-scripts start
2020-06-09T01:00:21.332828+00:00 app[web.1]: 
2020-06-09T01:00:24.155787+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.18.134.138/
2020-06-09T01:00:24.156164+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-06-09T01:00:24.156249+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-09T01:00:24.156348+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-06-09T01:00:24.156488+00:00 app[web.1]: Starting the development server...
2020-06-09T01:00:24.156489+00:00 app[web.1]: 
2020-06-09T01:00:24.268274+00:00 heroku[web.1]: Process exited with status 0
2020-06-09T01:00:24.295014+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-09T05:23:43.000000+00:00 app[api]: Build started by user 'email here'
2020-06-09T05:26:12.212362+00:00 app[api]: Deploy cb470676 by user 'email here'
2020-06-09T05:26:12.212362+00:00 app[api]: Release v6 created by user 'email here'
2020-06-09T05:26:13.797000+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-09T05:26:25.000000+00:00 app[api]: Build succeeded
2020-06-09T05:26:25.945611+00:00 heroku[web.1]: Starting process with command `npm start`
2020-06-09T05:26:28.089021+00:00 app[web.1]: 
2020-06-09T05:26:28.089040+00:00 app[web.1]: > sitetest@0.1.0 start /app
2020-06-09T05:26:28.089040+00:00 app[web.1]: > react-scripts start
2020-06-09T05:26:28.089041+00:00 app[web.1]: 
2020-06-09T05:26:30.529476+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.17.165.62/
2020-06-09T05:26:30.529909+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-06-09T05:26:30.529998+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-09T05:26:30.530083+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-06-09T05:26:30.530284+00:00 app[web.1]: Starting the development server...
2020-06-09T05:26:30.530285+00:00 app[web.1]: 
2020-06-09T05:26:30.603642+00:00 heroku[web.1]: Process exited with status 0
2020-06-09T05:26:30.642052+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-09T05:26:30.644121+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-09T05:26:42.357509+00:00 heroku[web.1]: Starting process with command `npm start`
2020-06-09T05:26:44.561518+00:00 app[web.1]: 
2020-06-09T05:26:44.561559+00:00 app[web.1]: > sitetest@0.1.0 start /app
2020-06-09T05:26:44.561560+00:00 app[web.1]: > react-scripts start
2020-06-09T05:26:44.561561+00:00 app[web.1]: 
2020-06-09T05:26:46.716678+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.17.189.14/
2020-06-09T05:26:46.717011+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-06-09T05:26:46.717084+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-09T05:26:46.717159+00:00 app[web.1]: ℹ ���wds」: 404s will fallback to /
2020-06-09T05:26:46.717327+00:00 app[web.1]: Starting the development server...
2020-06-09T05:26:46.717329+00:00 app[web.1]: 
2020-06-09T05:26:46.793560+00:00 heroku[web.1]: Process exited with status 0
2020-06-09T05:26:46.821486+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-09T05:31:03.000000+00:00 app[api]: Build started by user 'email here'
2020-06-09T05:33:25.498885+00:00 app[api]: Release v7 created by user 'email here'
2020-06-09T05:33:25.498885+00:00 app[api]: Deploy cb470676 by user 'email here'
2020-06-09T05:33:27.076004+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-09T05:33:37.629912+00:00 heroku[web.1]: Starting process with command `npm start`
2020-06-09T05:33:38.000000+00:00 app[api]: Build succeeded
2020-06-09T05:33:39.692556+00:00 app[web.1]: 
2020-06-09T05:33:39.692586+00:00 app[web.1]: > sitetest@0.1.0 start /app
2020-06-09T05:33:39.692587+00:00 app[web.1]: > react-scripts start
2020-06-09T05:33:39.692587+00:00 app[web.1]: 
2020-06-09T05:33:41.778868+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.16.26.82/
2020-06-09T05:33:41.779225+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-06-09T05:33:41.779298+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-09T05:33:41.779370+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-06-09T05:33:41.779515+00:00 app[web.1]: Starting the development server...
2020-06-09T05:33:41.779516+00:00 app[web.1]: 
2020-06-09T05:33:41.853424+00:00 heroku[web.1]: Process exited with status 0
2020-06-09T05:33:41.888052+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-09T05:33:44.284368+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sitetest606.herokuapp.com request_id=db99a055-8082-4e66-8cd5-8bf21fd35116 fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https
2020-06-09T05:33:44.835083+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sitetest606.herokuapp.com request_id=087c4220-c1c9-4a83-ab2f-da9a9e2880e6 fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https
2020-06-09T05:38:13.699168+00:00 heroku[web.1]: State changed from crashed to starting
2020-06-09T05:38:24.596089+00:00 heroku[web.1]: Starting process with command `npm start`
2020-06-09T05:38:26.862066+00:00 app[web.1]: 
2020-06-09T05:38:26.862085+00:00 app[web.1]: > sitetest@0.1.0 start /app
2020-06-09T05:38:26.862085+00:00 app[web.1]: > react-scripts start
2020-06-09T05:38:26.862086+00:00 app[web.1]: 
2020-06-09T05:38:29.105750+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.16.231.50/
2020-06-09T05:38:29.106281+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-06-09T05:38:29.106396+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-06-09T05:38:29.106504+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-06-09T05:38:29.106729+00:00 app[web.1]: Starting the development server...
2020-06-09T05:38:29.106730+00:00 app[web.1]: 
2020-06-09T05:38:29.180653+00:00 heroku[web.1]: Process exited with status 0
2020-06-09T05:38:29.207831+00:00 heroku[web.1]: State changed from starting to crashed
2020-06-09T05:39:54.081761+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sitetest606.herokuapp.com request_id=9e906c5a-fc9b-44b7-bef1-aeeb20542f9f fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https
2020-06-09T05:39:54.526775+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sitetest606.herokuapp.com request_id=000f75cc-a83e-45f2-ad62-b33e48994de4 fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https
2020-06-09T05:53:10.915507+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sitetest606.herokuapp.com request_id=1c35b3f9-0941-42e4-b4b8-f3539edf3a30 fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https
2020-06-09T05:53:11.339723+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sitetest606.herokuapp.com request_id=6aaabe9c-6af7-47dc-8725-069369690395 fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https
2020-06-09T05:56:42.784817+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sitetest606.herokuapp.com request_id=5f1e8114-4032-4a2f-a4a5-bc1e7110377c fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https
2020-06-09T05:56:42.968769+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sitetest606.herokuapp.com request_id=7f1d642b-e0dd-48ad-bc8e-e744921b71c8 fwd="90.196.209.254" dyno= connect= service= status=503 bytes= protocol=https

我已经仔细阅读了文档,但仍在努力查看部署失败的原因

0 个答案:

没有答案