我创建了一个基本的React APP(通过create React APP),并成功部署到Heroku。
虽然部署有效,但我无法打开应用程序。过去,我确实从我的Git帐户中执行了部署React APP的相同过程,并且运行良好。
我无法从日志中理解问题所在,也不知道会有什么变化?
020-04-17T18:19:35.823931+00:00 app[web.1]: > my-app@0.1.0 start /app
2020-04-17T18:19:35.823933+00:00 app[web.1]:
2020-04-17T18:19:37.539377+00:00 app[web.1]: â¹ ï½¢wdsï½£: Project is running at
http://172.18.111.10/
2020-04-17T18:19:37.539661+00:00 app[web.1]: â¹ ï½¢wdsï½£: webpack output is served from
2020-04-17T18:19:37.539739+00:00 app[web.1]: â¹ ï½¢wdsï½£: Content not from webpack is
served from /app/public
2020-04-17T18:19:37.539811+00:00 app[web.1]: â¹ ï½¢wdsï½£: 404s will fallback to /
2020-04-17T18:19:37.539981+00:00 app[web.1]: Starting the development server...
2020-04-17T18:19:37.539982+00:00 app[web.1]:
2020-04-17T18:19:37.638556+00:00 heroku[web.1]: State changed from starting to crashed
{
"name": "my-app",
"version": "0.1.0",
"private": false,
"engines": {
"node": "12.13.0",
"npm": "6.14.2",
"yarn": "1.19.0"
},
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
我很困惑,想知道为什么它不起作用。
为这个问题寻找一些线索。
非常感谢。