intial commit

This commit is contained in:
2026-06-07 19:10:00 +07:00
commit 37bf240d23
230 changed files with 37141 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
set -e
echo "Waiting for database connection..."
until php -r "try { new PDO('mysql:host=${DB_HOST};port=${DB_PORT}', '${DB_USERNAME}', '${DB_PASSWORD}'); echo 'ok'; } catch(PDOException \$e) { echo \$e->getMessage(); exit(1); }" 2>/dev/null | grep -q 'ok'; do
sleep 3
done
echo "Database connected."
php artisan migrate --force --isolated
php artisan storage:link --force || true
if [ "${APP_ENV}" = "production" ]; then
php artisan config:cache
php artisan route:cache
php artisan view:cache
fi
exec php-fpm