我目前正在尝试在Heroku上托管一个Gatsby网站,但遇到了我无法识别的错误。我已经阅读了Heroku上的错误代码和文档,但是我什至不知道如何开始调试它。任何帮助表示赞赏。
www
的输出:
heroku logs --tail
我的2019-11-16T18:32:15.191422+00:00 app[web.1]:
2019-11-16T18:32:15.191444+00:00 app[web.1]: > gatsby-starter-default@0.1.0 start /app
2019-11-16T18:32:15.191446+00:00 app[web.1]: > npm run develop
2019-11-16T18:32:15.191448+00:00 app[web.1]:
2019-11-16T18:32:15.600599+00:00 app[web.1]:
2019-11-16T18:32:15.600642+00:00 app[web.1]: > gatsby-starter-default@0.1.0 develop /app
2019-11-16T18:32:15.600644+00:00 app[web.1]: > gatsby develop
2019-11-16T18:32:15.600646+00:00 app[web.1]:
2019-11-16T18:32:18.642257+00:00 app[web.1]: success open and validate gatsby-configs - 0.031s
2019-11-16T18:32:18.986115+00:00 app[web.1]: lscpu: failed to determine number of CPUs: /sys/devices/system/cpu/possible: No such file or directory
2019-11-16T18:32:19.232778+00:00 app[web.1]: success load plugins - 0.578s
2019-11-16T18:32:19.249010+00:00 app[web.1]: success onPreInit - 0.004s
2019-11-16T18:32:19.281243+00:00 app[web.1]: success delete html and css files from previous builds - 0.021s
2019-11-16T18:32:19.305358+00:00 app[web.1]: success initialize cache - 0.011s
2019-11-16T18:32:19.376128+00:00 app[web.1]: success copy gatsby files - 0.060s
2019-11-16T18:32:19.399008+00:00 app[web.1]: success onPreBootstrap - 0.012s
2019-11-16T18:32:19.734685+00:00 app[web.1]: success source and transform nodes - 0.324s
2019-11-16T18:32:20.297981+00:00 app[web.1]: success building schema - 0.554s
2019-11-16T18:32:20.318896+00:00 app[web.1]: success createPages - 0.001s
2019-11-16T18:32:20.425328+00:00 app[web.1]: success createPagesStatefully - 0.096s
2019-11-16T18:32:20.437964+00:00 app[web.1]: success onPreExtractQueries - 0.003s
2019-11-16T18:32:20.499186+00:00 app[web.1]: success update schema - 0.051s
2019-11-16T18:32:21.051328+00:00 app[web.1]: success extract queries from components - 0.541s
2019-11-16T18:32:21.068264+00:00 app[web.1]: success write out requires - 0.005s
2019-11-16T18:32:21.080897+00:00 app[web.1]: success write out redirect data - 0.003s
2019-11-16T18:32:21.296393+00:00 app[web.1]: success Build manifest and related icons - 0.199s
2019-11-16T18:32:21.310391+00:00 app[web.1]: success onPostBootstrap - 0.216s
2019-11-16T18:32:21.311113+00:00 app[web.1]: ⠀
2019-11-16T18:32:21.311453+00:00 app[web.1]: info bootstrap finished - 5.692 s
2019-11-16T18:32:21.311693+00:00 app[web.1]: ⠀
2019-11-16T18:32:23.089687+00:00 app[web.1]: success run queries - 1.753s - 4/4 2.28/s
2019-11-16T18:32:40.323296+00:00 app[web.1]: ⠀
2019-11-16T18:32:40.323593+00:00 app[web.1]: You can now view gatsby-starter-default in the browser.
2019-11-16T18:32:40.323821+00:00 app[web.1]: ⠀
2019-11-16T18:32:40.324007+00:00 app[web.1]: http://localhost:8000/
2019-11-16T18:32:40.324198+00:00 app[web.1]: ⠀
2019-11-16T18:32:40.324425+00:00 app[web.1]: View GraphiQL, an in-browser IDE, to explore your site's data and schema
2019-11-16T18:32:40.324621+00:00 app[web.1]: ⠀
2019-11-16T18:32:40.325854+00:00 app[web.1]: http://localhost:8000/___graphql
2019-11-16T18:32:40.326033+00:00 app[web.1]: ⠀
2019-11-16T18:32:40.326223+00:00 app[web.1]: Note that the development build is not optimized.
2019-11-16T18:32:40.326417+00:00 app[web.1]: To create a production build, use gatsby build
2019-11-16T18:32:40.326582+00:00 app[web.1]: ⠀
2019-11-16T18:32:40.361959+00:00 app[web.1]: success Building development bundle - 14.195s
2019-11-16T18:33:13.598741+00:00 heroku[web.1]: State changed from starting to crashed
2019-11-16T18:33:13.502712+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-11-16T18:33:13.502712+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-11-16T18:33:13.583150+00:00 heroku[web.1]: Process exited with status 137
2019-11-16T18:33:13.604411+00:00 heroku[web.1]: State changed from crashed to starting
2019-11-16T18:33:23.276942+00:00 heroku[web.1]: Starting process with command `npm start`
2019-11-16T18:33:25.518646+00:00 app[web.1]:
2019-11-16T18:33:25.518664+00:00 app[web.1]: > gatsby-starter-default@0.1.0 start /app
2019-11-16T18:33:25.518666+00:00 app[web.1]: > npm run develop
2019-11-16T18:33:25.518667+00:00 app[web.1]:
2019-11-16T18:33:25.812651+00:00 app[web.1]:
2019-11-16T18:33:25.812706+00:00 app[web.1]: > gatsby-starter-default@0.1.0 develop /app
2019-11-16T18:33:25.812714+00:00 app[web.1]: > gatsby develop
2019-11-16T18:33:25.812749+00:00 app[web.1]:
2019-11-16T18:33:29.233325+00:00 app[web.1]: success open and validate gatsby-configs - 0.063s
2019-11-16T18:33:29.595188+00:00 app[web.1]: lscpu: failed to determine number of CPUs: /sys/devices/system/cpu/possible: No such file or directory
2019-11-16T18:33:29.881747+00:00 app[web.1]: success load plugins - 0.630s
2019-11-16T18:33:29.899218+00:00 app[web.1]: success onPreInit - 0.003s
2019-11-16T18:33:29.938089+00:00 app[web.1]: success delete html and css files from previous builds - 0.020s
2019-11-16T18:33:29.968672+00:00 app[web.1]: success initialize cache - 0.014s
2019-11-16T18:33:30.048642+00:00 app[web.1]: success copy gatsby files - 0.068s
2019-11-16T18:33:30.070305+00:00 app[web.1]: success onPreBootstrap - 0.010s
2019-11-16T18:33:30.426547+00:00 app[web.1]: success source and transform nodes - 0.342s
2019-11-16T18:33:31.067883+00:00 app[web.1]: success building schema - 0.625s
2019-11-16T18:33:31.082192+00:00 app[web.1]: success createPages - 0.000s
2019-11-16T18:33:31.202065+00:00 app[web.1]: success createPagesStatefully - 0.101s
2019-11-16T18:33:31.222861+00:00 app[web.1]: success onPreExtractQueries - 0.004s
2019-11-16T18:33:31.337641+00:00 app[web.1]: success update schema - 0.103s
2019-11-16T18:33:31.886163+00:00 app[web.1]: success extract queries from components - 0.536s
2019-11-16T18:33:31.902422+00:00 app[web.1]: success write out requires - 0.004s
2019-11-16T18:33:31.914889+00:00 app[web.1]: success write out redirect data - 0.003s
2019-11-16T18:33:32.128065+00:00 app[web.1]: success Build manifest and related icons - 0.193s
2019-11-16T18:33:32.140030+00:00 app[web.1]: success onPostBootstrap - 0.214s
2019-11-16T18:33:32.140638+00:00 app[web.1]: ⠀
2019-11-16T18:33:32.140895+00:00 app[web.1]: info bootstrap finished - 6.322 s
2019-11-16T18:33:32.141041+00:00 app[web.1]: ⠀
2019-11-16T18:33:33.677588+00:00 app[web.1]: success run queries - 1.515s - 4/4 2.64/s
2019-11-16T18:33:45.730393+00:00 app[web.1]: ⠀
2019-11-16T18:33:45.730871+00:00 app[web.1]: You can now view gatsby-starter-default in the browser.
2019-11-16T18:33:45.731032+00:00 app[web.1]: ⠀
2019-11-16T18:33:45.731379+00:00 app[web.1]: http://localhost:8000/
2019-11-16T18:33:45.731650+00:00 app[web.1]: ⠀
2019-11-16T18:33:45.731944+00:00 app[web.1]: View GraphiQL, an in-browser IDE, to explore your site's data and schema
2019-11-16T18:33:45.732208+00:00 app[web.1]: ⠀
2019-11-16T18:33:45.732372+00:00 app[web.1]: http://localhost:8000/___graphql
2019-11-16T18:33:45.732600+00:00 app[web.1]: ⠀
2019-11-16T18:33:45.732861+00:00 app[web.1]: Note that the development build is not optimized.
2019-11-16T18:33:45.733127+00:00 app[web.1]: To create a production build, use gatsby build
2019-11-16T18:33:45.733439+00:00 app[web.1]: ⠀
2019-11-16T18:33:45.777193+00:00 app[web.1]: success Building development bundle - 8.912s
2019-11-16T18:33:49.425616+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=arcane-earth-68812.herokuapp.com request_id=dbcdc840-2223-4ce4-82f8-4e3d910de109 fwd="50.24.98.199" dyno= connect= service= status=503 bytes= protocol=https
2019-11-16T18:34:23.950830+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-11-16T18:34:23.950918+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-11-16T18:34:24.095918+00:00 heroku[web.1]: State changed from starting to crashed
2019-11-16T18:34:24.078604+00:00 heroku[web.1]: Process exited with status 137
2019-11-16T18:34:25.397054+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=arcane-earth-68812.herokuapp.com request_id=715fcac2-c61b-41ac-9c9a-2a68a5e3e5a7 fwd="50.24.98.199" dyno= connect= service= status=503 bytes= protocol=https
文件的内容:
package.json
如果需要任何其他详细信息,我可以提供它们,但是我认为包括上述两个文件应该是唯一必要的配置数据。