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>
13 lines
248 B
Bash
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
|