是否可以将多个平台部署到 AWS?
我有一个 PHP 应用程序,我还想运行一个小的 python 脚本。
我看到 PHP 平台默认安装 Python,但使用 eb deploy
AWS 不会获取 requirements.txt
并安装依赖项。
我已尝试手动安装 requirements.txt
,但在尝试安装 lxml
时挂起。
我还尝试添加一个配置文件:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: application.py
NumProcesses: 3
NumThreads: 20
但是现在 eb deploy
提示:
ERROR: "option_settings" in one of the configuration files failed validation. More details to follow.
ERROR: Unknown or duplicate parameter: WSGIPath
ERROR: Unknown or duplicate parameter: NumThreads
ERROR: Unknown or duplicate parameter: NumProcesses
我认为这是因为 eb
认为这只是一个 PHP 应用。
并行运行多个平台的正确方法是什么?
最佳答案
通过使用 .ebextentions 在部署期间在容器中运行预安装命令解决,这需要 setting the system path during eb deploy
关于php - 将多个平台部署到 Elastic Beanstalk (PHP/Python),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39238884/