Initial commit

This commit is contained in:
Developer
2026-02-06 21:44:04 -06:00
commit f85e93c7a6
151 changed files with 22916 additions and 0 deletions

13
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -e
# App must never fail startup due to missing DB/config.
# If DATABASE_URL present, try migrations + seed, but continue even if they fail.
if [ -n "$DATABASE_URL" ]; then
echo "[entrypoint] DATABASE_URL detected. Attempting prisma generate/migrate/seed (non-fatal on failure)..."
(npm run db:generate && npm run db:deploy && npm run db:seed) || echo "[entrypoint] Prisma init skipped/failed; continuing to start server."
else
echo "[entrypoint] DATABASE_URL not set. Skipping prisma. Starting server..."
fi
npm start