将我的 Node js 应用程序部署到 heroku 时,我遇到了这种问题

时间:2021-02-05 13:03:54

标签: mern

以下是尝试将 Node 应用程序部署到 heroku 时的日志,请帮助我找出根本原因或如何将我的第一个 Node js 应用程序正确部署到 heroku。

2021-02-05T12:21:15.913464+00:00 app[api]:发布 v1 由用户创建 2021-02-05T12:28:50.000000+00:00 app[api]:构建失败——检查你的构建输出: 2021-02-05T12:29:51.000000+00:00 app[api]:构建成功 2021-02-05T12:29:54.376790+00:00 heroku[web.1]:使用命令 npm start
启动进程 2021-02-05T12:29:57.923354+00:00 app[web.1]:> serverside@1.0.0 start /app 2021-02-05T12:29:57.923355+00:00 app[web.1]:> nodemon serverside/app.js

    2021-02-05T12:29:58.227155+00:00 app[web.1]: [nodemon] starting `node serverside/app.js app.js`
    2021-02-05T12:29:59.139861+00:00 app[web.1]: server running at port 9394
    2021-02-05T12:29:59.140588+00:00 app[web.1]: no connection
    2021-02-05T12:30:54.914241+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
    2021-02-05T12:30:54.969380+00:00 heroku[web.1]: Stopping process with SIGKILL
    2021-02-05T12:30:55.082148+00:00 heroku[web.1]: Process exited with status 137
    2021-02-05T12:30:55.158570+00:00 heroku[web.1]: State changed from starting to crashed
    2021-02-05T12:30:55.161542+00:00 heroku[web.1]: State changed from crashed to starting
    2021-02-05T12:31:00.590301+00:00 heroku[web.1]: Starting process with command `npm start` 
    2021-02-05T12:31:04.488340+00:00 app[web.1]: > serverside@1.0.0 start /app
    2021-02-05T12:31:04.488341+00:00 app[web.1]: > nodemon serverside/app.js  
    2021-02-05T12:31:05.131852+00:00 app[web.1]: [nodemon] starting `node serverside/app.js app.js`
    2021-02-05T12:31:06.568857+00:00 app[web.1]: server running at port 49173
    2021-02-05T12:31:06.570590+00:00 app[web.1]: no connection
    2021-02-05T12:31:40.139020+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=dhrubatechnicalapp.herokuapp.com request_id=47caf0b7-8731-4c3c-bbb0-4f4e6e103d3d fwd="103.217.243.89" dyno= connect= service= status=503 bytes= protocol=https
    2021-02-05T12:32:00.715872+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
    2021-02-05T12:32:00.765671+00:00 heroku[web.1]: Stopping process with SIGKILL
    2021-02-05T12:32:00.917456+00:00 heroku[web.1]: Process exited with status 137
    2021-02-05T12:32:01.117854+00:00 heroku[web.1]: State changed from starting to crashed
    2021-02-05T12:32:02.018946+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=dhrubatechnicalapp.herokuapp.com request_id=74920699-9576-49be-bac1-9a78a3305bda fwd="103.217.243.89" dyno= connect= service= status=503 bytes= protocol=https
    2021-02-05T12:32:02.841625+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=dhrubatechnicalapp.herokuapp.com request_id=4d52c369-2903-4cbf-8ecb-1de4d6d5bdb3 fwd="103.217.243.89" dyno= connect= service= status=503 bytes= protocol=https
    2021-02-05T12:32:03.888149+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=dhrubatechnicalapp.herokuapp.com request_id=b9553798-3085-4c46-8feb-8f4dc45ec846 fwd="103.217.243.89" dyno= connect= service= status=503 bytes= protocol=https
    2021-02-05T12:37:12.000000+00:00 app[api]: Build started by user sikdardhrubanil@gmail.com
    2021-02-05T12:37:28.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/1c97f8ad-e360-419d-8ddd-023adc967d74/activity/builds/d00b7dfd-ba35-43f3-92d5-a4f514ab54d8
    2021-02-05T12:39:23.000000+00:00 app[api]: Build started by user sikdardhrubanil@gmail.com
    2021-02-05T12:39:40.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/1c97f8ad-e360-419d-8ddd-023adc967d74/activity/builds/5362281b-b51e-44e7-afff-e6fa3b6b4008
      2021-02-05T12:42:04.064719+00:00 heroku[web.1]: State changed from crashed to starting
     

0 个答案:

没有答案