NAS deployment fixed
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user