delpoyment with fully dockerized project on wixur.ir, dyolink docker hub created beside backend and frontend image is uploaded.

This commit is contained in:
2026-07-07 15:32:25 +03:30
parent e00af9f5be
commit 329d3f122c
28 changed files with 877 additions and 44 deletions

View File

@@ -9,6 +9,13 @@ if [ "$NODE_ENV" = "production" ]; then
echo "Running in PRODUCTION mode"
echo "Running database migrations..."
./node_modules/.bin/prisma migrate deploy
if [ -f "dist/prisma/seed.js" ]; then
echo "Seeding reference data (plans, org types, permissions)..."
node dist/prisma/seed.js
elif [ -f "prisma/seed.ts" ] || [ -f "prisma/seed.js" ]; then
echo "Running database seed..."
./node_modules/.bin/prisma db seed
fi
else
echo "Running in DEVELOPMENT mode"
echo "Syncing database schema..."