AWS Beanstalk |PHP平台上的NPM [英] AWS Beanstalk | NPM on PHP Platform

查看:71
本文介绍了AWS Beanstalk |PHP平台上的NPM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的项目,我使用AWS elasticbeanstalk.我选择了AWS预先配置的平台:"PHP".

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

在部署过程中,应安装npm/node并运行"npm encore production"以创建javascript/vue/scss的生产版本.

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

我不确定如何解决此问题,尝试编写container_commands,但没有成功.你们能推荐一种在部署时在AWS Elasticbeanstalk上安装npm最佳方法"的方法吗?

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?

推荐答案

设置环境变量,例如:

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

AWS文档

这篇关于AWS Beanstalk |PHP平台上的NPM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆