Dev, Test, and Prod DBs separated. .env is unified now.

This commit is contained in:
AG
2025-12-07 20:27:29 +02:00
parent 2f035b48de
commit 34900aebdd
11 changed files with 85 additions and 12 deletions

View File

@@ -4,11 +4,12 @@
"description": "Backend for GymFlow AI",
"main": "src/index.ts",
"scripts": {
"start": "node dist/index.js",
"dev": "ts-node-dev -r dotenv/config --respawn --transpile-only src/index.ts",
"start": "npm run start:prod",
"start:prod": "cross-env APP_MODE=prod node dist/index.js",
"start:test": "cross-env APP_MODE=test ts-node-dev -r dotenv/config --respawn --transpile-only src/index.ts",
"dev": "cross-env APP_MODE=dev ts-node-dev -r dotenv/config --respawn --transpile-only src/index.ts",
"build": "tsc",
"migrate:deploy": "npx prisma migrate deploy"
},
"dependencies": {
"@google/generative-ai": "^0.24.1",
@@ -29,10 +30,11 @@
"@types/express": "*",
"@types/jsonwebtoken": "*",
"@types/node": "*",
"cross-env": "^10.1.0",
"dotenv-cli": "^11.0.0",
"nodemon": "*",
"prisma": "^7.1.0",
"ts-node": "*",
"typescript": "*"
}
}
}