我的Node js应用程序在部署到Heroku时无法运行,在本地托管时可以完美运行

时间:2020-08-31 11:15:20

标签: node.js heroku npm

2020-08-31T10:31:45.195766+00:00 heroku[web.1]: Starting process with command `npm start`
2020-08-31T10:31:47.281940+00:00 app[web.1]: npm ERR! missing script: start
2020-08-31T10:31:47.289376+00:00 app[web.1]:
2020-08-31T10:31:47.289838+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-08-31T10:31:47.290030+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2020-08-31T10_31_47_283Z-debug.log
2020-08-31T10:31:47.351124+00:00 heroku[web.1]: Process exited with status 1
2020-08-31T10:31:47.396006+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-31T10:44:54.042719+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-tor-83863.herokuapp.com request_id=dff1ac16-5050-434c-a02a-2ab7216bab3b fwd="117.234.0.173" dyno= connect= service= status=503 bytes= protocol=https
2020-08-31T10:44:54.565308+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rocky-tor-83863.herokuapp.com request_id=7cfaf684-a467-434f-90be-e53a06cfa16f fwd="117.234.0.173" dyno= connect= service= status=503 bytes= protocol=https
2020-08-31T10:44:59.403024+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-tor-83863.herokuapp.com request_id=f3ff1bf7-69df-4787-ae64-d8306a544bb8 fwd="117.234.0.173" dyno= connect= service= status=503 bytes= protocol=https
2020-08-31T10:45:00.807407+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rocky-tor-83863.herokuapp.com request_id=17593d6b-bd0c-4a6d-893c-6477f8677905 fwd="117.234.0.173" dyno= connect= service= status=503 bytes= protocol=https
2020-08-31T10:54:06.405796+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-tor-83863.herokuapp.com request_id=9e8fa17a-7739-4981-ad64-e8ffe3c8771a fwd="117.234.0.173" dyno= connect= service= status=503 bytes= protocol=https
2020-08-31T10:54:12.700394+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rocky-tor-83863.herokuapp.com request_id=bd5a3888-4346-4e2c-b391-e163566bea82 fwd="117.234.0.173" dyno= connect= service= status=503 bytes= protocol=https

0 个答案:

没有答案