node.js - 如何解决 Heroku 上的部署“应用程序错误”?
问题描述
有人建议使用 Heroku。我将它连接到我的github。部署后它告诉我应用程序错误,见下文:
"
应用程序日志
2021-05-13T05:33:11.974735+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-13T05:33:17.434161+00:00 heroku[web.1]: Starting process with command `npm start`
2021-05-13T05:33:21.152639+00:00 app[web.1]: npm ERR! missing script: start
2021-05-13T05:33:21.177166+00:00 app[web.1]:
2021-05-13T05:33:21.179883+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-05-13T05:33:21.183465+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-05-13T05_33_21_153Z-debug.log
2021-05-13T05:33:21.253969+00:00 heroku[web.1]: Process exited with status 1
2021-05-13T05:33:21.354019+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-13T05:33:22.611937+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intelhubdev.herokuapp.com request_id=56993659-8105-4f1a-b1a0-ff53a2c65ae2 fwd="197.210.45.44" dyno= connect= service= status=503 bytes= protocol=https
2021-05-13T05:33:23.853075+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=intelhubdev.herokuapp.com request_id=fbd4eed8-7477-4de3-b3a2-6438c536c470 fwd="197.210.45.44" dyno= connect= service= status=503 bytes= protocol=https"
解决方案
推荐阅读
- javascript - 带有 Jquery 插件的 Ionic 3
- android - 如何在Android的firebase UI中将方向设置为纵向
- java - 从 Map 创建 tar 并将其转换为 bytearray 而不保存
- apache-kafka - kafka 经纪人,生产者和消费者相关
- bash - “字符串匹配”和“模式匹配”的区别
- c# - Asp.net: - 是物理路径,但应该是虚拟路径
- java - 为什么我违反 SonarQube java 规则“零不应该是可能的分母”
- php - 如何从模态数据库中获取数据以显示特定点击的详细信息
- python - 对列表中第一项相同的项目进行分组
- angular - 为 Angular 4 安装哪个 Angular CLI 版本以及我可以为 Node 6.x 和 NPM 3.x 使用哪个版本的 Angular?