Reflect new enviorement

This commit is contained in:
Douglas Barone 2020-11-17 12:15:01 -04:00
parent 12a3086a22
commit 5eeb3cdf67
2 changed files with 4 additions and 2 deletions

View File

@ -7,8 +7,10 @@ RUN npm install
COPY . .
RUN npm run prisma-deploy
RUN npm run prisma-generate
RUN npm run build
CMD npm run prisma-deploy && npm start
CMD npm start

View File

@ -6,7 +6,7 @@
"scripts": {
"start": "node dist/index.js",
"dev": "nodemon --ext js,graphql src/index.js --exec babel-node",
"prisma-deploy": "prisma deploy",
"prisma-deploy": "prisma migrate up --experimental",
"prisma-generate": "prisma generate",
"build": "babel src --out-dir dist --copy-files"
},