Skip to content

Commit 6d35981

Browse files
committed
Run migrations during start
1 parent fb286cf commit 6d35981

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ COPY Procfile Procfile
3333
ENV NODE_ENV=production
3434

3535
ENTRYPOINT ["yarn"]
36-
CMD ["start"]
36+
CMD ["start:prod"]

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"prebuild": "rimraf dist",
1616
"build": "nest build",
1717
"start": "node dist/main",
18+
"start:prod": "npm run migrations:run && npm start",
1819
"dev": "nest start --watch",
1920
"lint": "xo",
2021
"lint:fix": "xo --fix",

0 commit comments

Comments
 (0)