Ich arbeite an der Bereitstellung der App durch elastische Bohnenstange.Elastische Bohnenstange, Konfiguration lief nie?
Allerdings habe ich bemerkt, dass die Konfigurationsdateien werden nie lief, weiß ich, das durch:
ich ein Dokument root festgelegt haben, wenn ich zu den Einstellungen throught AWS es leer ist, Ich habe eine Umgebung gesetzt Variablen, die auch leer sind, aber wenn es manuell über die Website eingestellt wird, funktionieren sie gut, im Ereignisprotokoll (während der Bereitstellung) sollte ich anscheinend die Ausgabe sehen, dass config erfolgreich ausgeführt wurde. Ich habe jedes Logbuch ausprobiert und es wurde nirgendwo erwähnt.
Ich benutze Laravel 5.4 und .exextensions Ordner wird im root des Projekts erstellt. Im Innern habe ich 01-environment.config:
option_settings:
aws:elasticbeanstalk:container:php:phpini:
document_root: /public
memory_limit: 512M
aws:elasticbeanstalk:sqsd:
HttpPath: /worker/queue
aws:elasticbeanstalk:application:environment:
APP_ENV: production
APP_KEY: base64:MDKarorDueozTysvq50zDJET7es7MsVoTe3r001+xBs=
APP_DEBUG: true
02-deploy.config
container_commands:
01-migrations:
command: "php artisan migrate --force"
command: "php artisan key:generate"
command: "php artisan config:clear"
command: "php artisan config:cache"
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/99_make_storage_writable.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
echo "Making /storage writeable..."
chmod -R 777 /var/app/current/storage
chmod -R 777 /var/app/current/bootstrap/cache
if [ ! -f /var/app/current/storage/logs/laravel.log ]; then
echo "Creating /storage/logs/laravel.log..."
owner: root
group: root
content: |
#!/usr/bin/env bash
echo "Making /storage writeable..."
chmod -R 777 /var/app/current/storage
chmod -R 777 /var/app/current/bootstrap/cache
if [ ! -f /var/app/current/storage/logs/laravel.log ]; then
echo "Creating /storage/logs/laravel.log..."
touch /var/app/current/storage/logs/laravel.log
chown webapp:webapp /var/app/current/storage/logs/laravel.log
fi
if [ ! -d /var/app/current/public/storage ]; then
echo "Creating /public/storage symlink..."
ln -s /var/app/current/storage/app/public /var/app/current/public/sto$
fi
"/opt/elasticbeanstalk/tasks/publishlogs.d/laravel-logs.conf":
chown webapp:webapp /var/app/current/storage/logs/laravel.log
fi
if [ ! -d /var/app/current/public/storage ]; then
echo "Creating /public/storage symlink..."
ln -s /var/app/current/storage/app/public /var/app/current/public/sto$
fi
"/opt/elasticbeanstalk/tasks/publishlogs.d/laravel-logs.conf":
mode: "000755"
owner: root
group: root
content: |
/var/app/current/storage/logs/*.log
"/etc/httpd/conf.d/https_redirect.conf":
mode: "000644"
owner: root
group: root
content: |
/var/app/current/storage/logs/*.log
"/etc/httpd/conf.d/https_redirect.conf":
mode: "000644"
owner: root
group: root
content: |
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=307,L]
Wie Sie sehen haben hier auch immer nicht funktioniert ich umleiten, die, wie es auf http durch Standard, ich bekomme kein Laravel Log auf S3 entweder oder einen anderen Befehl. Wer weiß warum?