Files
AirService_potyk/docker/entrypoint.sh
T
2026-06-02 22:18:38 +05:00

20 lines
377 B
Bash

#!/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
php artisan view:cache
exec "$@"