AWS Beanstalk | NPM on PHP Platform

牧云@^-^@ 提交于 2021-01-28 14:32:52

问题


for my project I use AWS elasticbeanstalk. I choosed the AWS preconfigured plattform: "PHP".

While the deploy process it should install npm/node and run 'npm encore production' to create a production build of the javascript/vue/scss.

I am not sure how to solve this, tried to write container_commands but it didn't work. Do you guys can recommend a way to install npm "the best way" on AWS elasticbeanstalk, while deploying?


回答1:


Set Environment Variables like:

packages: 
yum:
nodejs: [] 
npm: []

AWS Documentation



来源:https://stackoverflow.com/questions/53670487/aws-beanstalk-npm-on-php-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!