我通過使用 create-react-app 制作了一個非常簡單的 MERN 應用程序,沒有 mongo 數據庫。當我部署到 Heroku 時,我看到的只是一個空白頁面。我嘗試了很多事情但沒有運氣。API 正確發送電子郵件,頁面標題正確,但所有內容均丟失。請幫我看看,這是我的第一次部署。這是代碼: https: //github.com/samames/essae 這是部署:https://protected-wave-21372.herokuapp.com/非常感謝- 編輯 -這是日志:2020-11-13T18:00:38.000000+00:00 app[api]: Build succeeded2020-11-13T18:00:38.289382+00:00 heroku[web.1]: Stopping all processes with SIGTERM2020-11-13T18:00:38.395329+00:00 heroku[web.1]: Process exited with status 1432020-11-13T18:00:53.206813+00:00 heroku[web.1]: Starting process with command `node backend/index.js`2020-11-13T18:00:56.521645+00:00 app[web.1]: app listening at http://localhost:95082020-11-13T18:00:57.608133+00:00 heroku[web.1]: State changed from starting to up2020-11-13T18:01:03.750237+00:00 heroku[router]: at=info method=GET path="/" host=protected-wave-21372.herokuapp.com request_id=216189ff-cb13-4b39-8d8a-155df094c5b6 fwd="176.26.189.232" dyno=web.1 connect=1ms service=52ms status=200 bytes=2532 protocol=https2020-11-13T18:01:03.902311+00:00 heroku[router]: at=info method=GET path="/static/js/main.2940f24a.chunk.js" host=protected-wave-21372.herokuapp.com request_id=34237762-907b-4211-b154-8ee408429549 fwd="176.26.189.232" dyno=web.1 connect=16ms service=11ms status=200 bytes=2532 protocol=https2020-11-13T18:01:03.903848+00:00 heroku[router]: at=info method=GET path="/static/css/main.8c8b27cf.chunk.css" host=protected-wave-21372.herokuapp.com request_id=a1e4b2db-48b9-401c-9e4c-f0f4a3cfb84a fwd="176.26.189.232" dyno=web.1 connect=14ms service=13ms status=200 bytes=2532 protocol=https
MERN 應用程序部署到 heroku,一個空白頁面
皈依舞
2023-08-05 19:34:34