mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
21 lines
454 B
Bash
Executable File
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
|