sqlite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user