AWS-弹性beantalk-环境重建后eb部署未运行节点脚本服务器

时间:2020-06-29 15:11:27

标签: node.js amazon-web-services amazon-ec2 amazon-elastic-beanstalk

我正在使用eb cli部署我的应用程序。这是我的eb配置。

branch-defaults:
  master:
    environment: stage
    group_suffix: null
environment-defaults:
  stage:
    branch: null
    repository: null
global:
  application_name: appName
  branch: null
  default_ec2_keyname: someKey
  default_platform: Node.js 12 running on 64bit Amazon Linux 2
  default_region: us-east-2
  include_git_submodules: true
  instance_profile: null
  platform_name: null
  platform_version: null
  profile: eb-cli
  repository: null
  sc: git
  workspace_type: Application

我的应用程序package.json看起来像这样

{
  "name": "appName",
  "version": "1.0.0",
  "dependencies": {
    "aws-sdk": "^2.656.0",
    "dotenv": "^8.2.0",
    "socket.io": "latest",
    "tail": "^2.0.3"
  },
  "scripts": {
    "start": "node app.js"
  }
}

通常,在我使用eb deploy之后,运行了节点node app.js,启动了服务器,一切正常。问题是,今天我重建了环境之后,该命令不再运行(它不会失败,也不会运行)。 Google在这件事上似乎让我失望。知道如何解决这个问题吗?

0 个答案:

没有答案
相关问题