feat: update environment configuration for production and add Docker support
CI/CD / test-and-build (push) Waiting to run
CI/CD / deploy (push) Blocked by required conditions

This commit is contained in:
Najjar\NajjarV02
2026-04-15 10:04:07 +04:00
parent 3fbdc3b187
commit 138e8377a6
6 changed files with 124 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -e
# Ensure the persistent database directory exists
# (Coolify: mount a volume at /app/prisma so data survives redeployments)
mkdir -p /app/prisma
echo "→ Syncing database schema..."
# db push creates the SQLite file and syncs tables to match schema.prisma
# --skip-generate: client was already generated at build time
/app/node_modules/.bin/prisma db push --skip-generate
echo "→ Starting Next.js on port ${PORT:-3000}..."
exec node /app/server.js