How does AWS Beanstalk use NPM when deploying a Nodejs App?

后端 未结 4 1812
醉酒成梦
醉酒成梦 2021-02-18 19:19

I\'m curious about the overall workflow of an AWS Beanstalk deployment. I\'m assuming it runs npm at some point to get the packages installed on the server(s). But I was just wo

4条回答
  •  隐瞒了意图╮
    2021-02-18 19:33

    Currently the Elastic Beanstalk environment runs npm install without the --production flag. This happens on the instance at /opt/elasticbeanstalk/containerfiles/ebnode.py before any env customizations supplied by the developer (i.e., environment option settings) are exported, which means setting NODE_ENV=production in the EB Environment's configuration also does not prevent devDependencies from being processed.

提交回复
热议问题