feat: update environment configuration for production and add Docker support
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user