#!/usr/bin/env sh set -e cd /var/www/html if [ ! -f .env ] && [ -f .env.docker.example ]; then cp .env.docker.example .env fi if [ ! -f vendor/autoload.php ]; then composer install fi php artisan config:clear --no-ansi if ! grep -q '^APP_KEY=base64:' .env 2>/dev/null; then php artisan key:generate --force --no-ansi fi php artisan migrate --force --no-ansi php artisan db:seed --force --no-ansi php artisan schedule:work --no-interaction > /dev/null 2>&1 & exec "$@"