以下服务未运行:web。 - EB AWS 部署错误

时间:2021-07-21 13:50:42

标签: node.js amazon-elastic-beanstalk

我的 node.js 应用程序已成功部署在 EB 上,但我在运行状况概览中收到错误 Following services are not running: web.。除此之外没有别的。在 EB 控制台上,我的(Env. name)--> Configuration --> Software --> 端口是 8080。VPC 也被创建和映射。

package.json 上的脚本是:

"scripts": {
    "start": "node index.js",
    "start:TE1": "npx env-cmd -f .env.TE1 react-scripts start",
    "start:TE2": "npx env-cmd -f .env.TE2 react-scripts start",
    "start:dev": "env-cmd -f .env.development react-scripts start",
    "dev": "node -r dotenv/config",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

我正在运行 start:TE2 正如 Procfile 所暗示的那样: web: npm run start:TE2

呈现的网页返回错误502 Bad Gateway,所以我会说问题是端口连接?

那个错误信息很不清楚。任何建议如何前进?附上我的 eb health 命令截图。

提前致谢! enter image description here

0 个答案:

没有答案
相关问题