Elastic Beanstalk .ebextensions配置文件不生成文件

时间:2017-10-15 06:36:18

标签: nginx spring-boot elastic-beanstalk ebextensions

平台:java8(不是tomcat,因为我使用spring-boot,所以我使用嵌入式tomcat)

所以我用下面的命令压缩

zip -r app.zip app.jar .ebextensions

.ebextensions包含test.config文件 files: "/etc/nginx/conf.d/test.conf": mode: "000644" owner: root group: root content: | client_max_body_size 10M;

我检查每个ec2实例,但不要生成/etc/nginx/conf.d/test.conf
我检查/var/log/eb-activity.log
[2017-10-15T05:12:32.538Z] INFO [2995] - [Application deployment prod-map-api-c0c8a00b590c593700ba85405010a85bea21ecd2@26/StartupStage0/AppDeployPreHook] : Starting activity... [2017-10-15T05:12:32.538Z] INFO [2995] - [Application deployment prod-map-api-c0c8a00b590c593700ba85405010a85bea21ecd2@26/StartupStage0/AppDeployPreHook/01_configure_application.sh] : Starting activity... [2017-10-15T05:12:33.164Z] INFO [2995] - [Application deployment prod-map-api-c0c8a00b590c593700ba85405010a85bea21ecd2@26/StartupStage0/AppDeployPreHook/01_configure_application.sh] : Completed activity. Result: Executing: /usr/bin/unzip -o -d /var/app/staging /opt/elasticbeanstalk/deploy/appsource/source_bundle Archive: /opt/elasticbeanstalk/deploy/appsource/source_bundle inflating: /var/app/staging/map.jar inflating: /var/app/staging/Procfile creating: /var/app/staging/.ebextensions/ inflating: /var/app/staging/.ebextensions/test.config Executing: HOME=/tmp /opt/elasticbeanstalk/lib/ruby/bin/ruby /opt/elasticbeanstalk/lib/ruby/bin/foreman export supervisord --procfile /var/app/staging/Procfile --root /var/app/current --app application --log /var/log/ --user webapp --template /opt/elasticbeanstalk/private/config/foreman/supervisord --env /var/elasticbeanstalk/staging/elasticbeanstalk.env /var/elasticbeanstalk/staging/supervisor [foreman export] writing: application.conf Executing: /opt/elasticbeanstalk/bin/log-conf -n supervisor -l'/var/log/supervisord.log' -t bundlelogs Executing: /opt/elasticbeanstalk/bin/log-conf -n containerlistener -l'/var/log/eb-container-listener.log' -t bundlelogs

我找不到任何失败的消息......

1 个答案:

答案 0 :(得分:0)

待命律师

JAVA SE的代理配置与其他平台不同 请参阅Configuring the Reverse Proxy in JAVA SE

也许我在/etc/nginx/conf.d中没有写文件权限 我尝试使用* .config文件在/ home / ec2-user中创建一些文件,它可以工作。

我不想阅读官方文件。