mandant-crm/docker/php/entrypoint.prod.sh
Tim Stollberg a95fac5c0d feat(docker): add production docker-compose for Coolify deployment
Coolify builds with --project-directory set to the repo root, which broke
the dev compose file's relative paths. Adds a dedicated prod compose stack
(baked-in code, no bind mounts, no hardcoded secrets, static Nuxt build
served by nginx) so local dev and Coolify no longer share fragile path
assumptions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 14:59:06 +07:00

13 lines
248 B
Bash

#!/bin/sh
set -e
php artisan storage:link || true
php artisan config:cache
php artisan route:cache
php artisan view:cache
if [ "$RUN_MIGRATIONS" = "true" ]; then
php artisan migrate --force
fi
exec php artisan serve --host=0.0.0.0 --port=8000