NAS deployment fixed

This commit is contained in:
aodulov
2025-12-18 13:03:12 +02:00
parent 97b4e5de32
commit e9aec9a65d
14 changed files with 278 additions and 76 deletions

View File

@@ -11,8 +11,10 @@ module.exports = {
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
APP_MODE: 'prod',
PORT: 3003,
DATABASE_URL: 'file:../prod.db' // Relative to server/dist/index.js? No, relative to CWD if using prisma.
DATABASE_URL: 'file:./prod.db', // Consistent with the npx prisma db push command
DATABASE_URL_PROD: 'file:./prod.db',
// Actually, prisma runs from where schema is or based on env.
// Let's assume the DB is in the root or server dir.
// In package.json: "start:prod": "cross-env APP_MODE=prod DATABASE_URL=file:./prod.db ... src/index.ts"