Skip to content
Snippets Groups Projects
Commit c6a602b7 authored by michael.minelli's avatar michael.minelli
Browse files

Package => Add script for start in prod with db migration

parent 74c089e7
Branches
Tags
No related merge requests found
......@@ -9,7 +9,8 @@
"clean" : "rm -R dist/*",
"build" : "npx prisma generate; npx tsc --project ./",
"start:dev" : "npx nodemon src/app.ts",
"start:prod": "NODE_ENV=production npx node --max-http-header-size=1048576 dist/app.js"
"start:prod" : "NODE_ENV=production npx node --max-http-header-size=1048576 dist/app.js",
"start:migrate:prod": "npx prisma migrate deploy && npx prisma db seed && npm run start:prod"
},
"prisma" : {
"seed": "ts-node prisma/seed.ts"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment