#!/bin/sh
set -eu

cd /var/www/html

mkdir -p bootstrap/cache storage/app/database storage/app/public storage/framework/cache/data storage/framework/sessions storage/framework/testing storage/framework/views
touch storage/app/database/database.sqlite

# Production should never keep a Vite hot file around, otherwise Laravel keeps
# trying to load assets from the dev server (usually :5173) instead of /build.
rm -f public/hot

exec php -S 0.0.0.0:8000 docker/router.php
