#!/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 "$@"