BloomFeed Addons v0.22

This commit is contained in:
Esteban
2026-07-04 20:22:16 +02:00
parent c4d1308497
commit d58f2195f5
22 changed files with 832 additions and 7 deletions
+5 -5
View File
@@ -1,18 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
echo "==> Attente de la base de données (${DB_HOST:-db}:${DB_PORT:-3306})"
echo "==> Waiting for the database (${DB_HOST:-db}:${DB_PORT:-3306})"
for i in $(seq 1 30); do
if php -r "exit(@fsockopen(getenv('DB_HOST') ?: 'db', (int) (getenv('DB_PORT') ?: 3306)) ? 0 : 1);"; then
echo "==> Base de données disponible"
echo "==> Database available"
break
fi
echo "==> DB indisponible, nouvelle tentative dans 2s ($i/30)"
echo "==> Database not available yet, retrying in 2s ($i/30)"
sleep 2
done
echo "==> Exécution des migrations"
echo "==> Running migrations"
php artisan migrate --force
echo "==> Démarrage d'Apache"
echo "==> Starting Apache"
exec apache2-foreground