Files

21 lines
454 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$IS_LARAVEL" = "true" ]; then
if [ "$RAILPACK_SKIP_MIGRATIONS" != "true" ]; then
# Run migrations and seeding
echo "Running migrations and seeding database ..."
php artisan migrate --force
fi
php artisan storage:link
php artisan optimize:clear
php artisan optimize
echo "Starting Laravel server ..."
fi
# Start the FrankenPHP server
docker-php-entrypoint --config /Caddyfile --adapter caddyfile 2>&1