Files
SealShare/docker/dev-entrypoint.sh
T
Andreas Reinhold / reiniandClaude Opus 5 c4a17b65c8 Move SealShare onto Livewire Material
Replaces maryUI and daisyUI with nonameweb/livewire-material: the Vibrant
indigo scheme, a system/light/dark theme under sealshare-theme, one top
app bar with the account menu, the upload drop zone and link-ready
moments, M3 fields, dialogs instead of wire:confirm, snackbars instead of
flashed messages, a sortable admin table, and the starter-kit cleanup.
Docker builds assets after Composer; CI drops the Flux step.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
2026-09-13 10:49:38 +02:00

35 lines
978 B
Bash
Executable File

#!/bin/sh
set -e
cd /app
# Generate PHP ini from environment variables (with defaults)
echo "[dev] Configuring PHP settings..."
cat > /usr/local/etc/php/conf.d/99-uploads.ini <<EOF
upload_max_filesize = ${PHP_UPLOAD_MAX_FILESIZE:-4G}
post_max_size = ${PHP_POST_MAX_SIZE:-4G}
max_execution_time = ${PHP_MAX_EXECUTION_TIME:-300}
max_input_time = ${PHP_MAX_INPUT_TIME:-300}
memory_limit = ${PHP_MEMORY_LIMIT:-512M}
EOF
if [ ! -f vendor/autoload.php ]; then
echo "[dev] Installing PHP dependencies..."
composer install --no-interaction 2>&1
fi
echo "[dev] Installing Node dependencies..."
npm install 2>&1
echo "[dev] Building frontend assets..."
npm run build 2>&1
echo "[dev] Running database migrations..."
php artisan migrate --force
echo "[dev] Creating storage link..."
php artisan storage:link --force
echo "[dev] Starting Octane (FrankenPHP) with --watch..."
exec php artisan octane:frankenphp --host=0.0.0.0 --port=8000 --watch --workers=1 --max-requests=1