2017-10-15 4 views
0

Plate-forme: java8 (non tomcat, parce que je l'utilise-boot de printemps, donc j'utiliser tomcat intégré)fichier élastique de configuration de Beanstalk ne font pas le fichier

donc je zippé par dessous commande

zip -r app.zip app.jar .ebextensions

.ebextensions contient le fichier test.config.
files: "/etc/nginx/conf.d/test.conf": mode: "000644" owner: root group: root content: | client_max_body_size 10M;

Je vérifie chaque instance EC2, mais ne font pas /etc/nginx/conf.d/test.conf
et je vérifie /var/log/eb-activity.log
[2017-10-15T05:12:32.538Z] INFO [2995] - [Application deployment [email protected]/StartupStage0/AppDeployPreHook] : Starting activity... [2017-10-15T05:12:32.538Z] INFO [2995] - [Application deployment [email protected]/StartupStage0/AppDeployPreHook/01_configure_application.sh] : Starting activity... [2017-10-15T05:12:33.164Z] INFO [2995] - [Application deployment [email protected]/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

Je ne peux pas trouver un message d'échec ...

Répondre

0

conseil veille

configuration proxy de Java S'est différent des autres plates-formes.
S'il vous plaît voir Configuring the Reverse Proxy in JAVA SE

Et je n'ai peut-être pas l'autorisation de fichier d'écriture dans /etc/nginx/conf.d
J'ai essayé de faire quelques fichiers dans/home/EC2-utilisateur avec le fichier * .config, Il travaux.

C'est une erreur de ne pas lire les documents officiels.