daemon
05/18/2022, 2:46 AMbash script to run npx prisma migrate deploy and afterwards start the node process? I think there is some waiting involved right? Trying to dockerize the app so I can run it in awsRichard Ward
05/18/2022, 6:33 AMnpx prisma generate into your postinstall in your package.jsonRichard Ward
05/18/2022, 6:34 AM"scripts": {
"build": "tsc",
"start": "node dist/server.js",
...
...
"postinstall": "npx prisma generate"
},Richard Ward
05/18/2022, 6:35 AMnpx risma generate
Obviously you can update that to npx prisma migrate deployRichard Ward
05/18/2022, 6:36 AM"scripts": {
"start": "npx prisma migrate deploy && node dist/server.js",
...
...
},
(you'd need to adjust the dist/server.js if your's is different)daemon
05/18/2022, 4:40 PM