在AWS python elasticbeanstalk环境中安装requirejs优化器(nodejs)
我有一个基于python的AWS elasticbeanstalk应用程序,我试图用它来部署一个需要运行requirejs优化器的python应用程序。 为了优化我的requirejs代码,我需要NodeJS(首选)或其他方式来运行requirejs优化器。
如何在elasticbeanstalk python环境中安装nodejs?
我曾尝试使用yum和rpm,但无法findnodejs包。 理想情况下,它将通过更改elasticbeanstalk的.ebextensions / .config文件中的configuration进行安装。
谢谢
我find了答案:
而不是使用packages config来安装节点
packages: yum: nodejs: []
我使用自定义命令来安装nodejs使用yum自定义configuration启用epel回购
container_commands: 01_install_node: command: "yum install -y --enablerepo=epel nodejs"
我可以确认节点现在已安装在环境中,并且可以运行requirejs优化器。
- 我应该在哪里存储我的Node.js应用程序的密钥?
- 无法在Elastic Beanstalk上部署KeystoneJS
- 在aws elastic-beanstalk上configurationhttps进行快速configuration
- AWS Elastic Beanstalk – 如何在同一个ec2实例中运行php和nodejs
- 由于目录权限,Node.js部署在Amazon Elastic Beanstalk上失败
- Amazon SQS不向我的工作者实例提供完整的消息
- 将ElastiCache连接到弹性Beanstalk实例
- 使用Node.js SDK构buildElastic Beanstalk
- 向Elastic Beanstalk(EC2)服务器发送超过一定大小的文件时出现的问题