This commit is contained in:
sbb45
2026-06-02 22:18:38 +05:00
parent b81ab27553
commit 7b655ff3de
11 changed files with 212 additions and 129 deletions
+10
View File
@@ -1,6 +1,16 @@
#!/bin/sh
set -e
if [ "$DB_CONNECTION" = "sqlite" ]; then
DB_DIR=$(dirname "$DB_DATABASE")
mkdir -p "$DB_DIR"
if [ ! -f "$DB_DATABASE" ]; then
touch "$DB_DATABASE"
fi
chown -R www-data:www-data "$DB_DIR"
chmod 664 "$DB_DATABASE"
fi
php artisan migrate --force
php artisan config:cache
php artisan route:cache