我正在研究Laravel项目。我正在尝试将应用程序部署到ElasticBeanstalk环境。我正在为部署配置CLI。我可以仅针对一种环境成功配置它。但是我正在配置它以支持多个环境的多个模块,如https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebcli-compose.html所述。但这是行不通的。这是我到目前为止所做的。
我在项目的根文件夹中创建了两个文件夹,名为beantalk-env-production和beanstalk-env-testing。
然后我运行以下命令。
-webkit-app-region: drag;
然后在每个文件夹中创建.elasticbeanstalk / config.yml文件。
config.yml文件具有以下内容。
eb init --modules beanstalk-env-testing beanstalk-env-production
然后我运行以下命令以部署到测试。
branch-defaults:
default:
environment: MyanEat-test-env
environment-defaults:
MyanEat-test-env:
branch: null
repository: null
global:
application_name: Myan Eat
default_ec2_keyname: null
default_platform: arn:aws:elasticbeanstalk:eu-west-1::platform/PHP 7.3 running on
64bit Amazon Linux 2/3.0.3
default_region: eu-west-1
instance_profile: null
platform_name: null
platform_version: null
profile: null
sc: null
workspace_type: Application
然后我遇到以下错误。
eb deploy --modules beanstalk-env-testing
我在哪里以及如何配置env.yaml文件?为什么不起作用?我该如何解决?