Skip to content

Commit a1b1dfe

Browse files
committed
feat: run database migrations automatically on server start
1 parent 24381fc commit a1b1dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"db:export-checks": "node scripts/export-checks.js",
2020
"db:export-checklists": "node scripts/export-checklists.js",
2121
"db:seed": "knex seed:run",
22-
"start": "node server.js",
22+
"start": "npm run db:migrate && node server.js",
2323
"test:e2e": "playwright test",
2424
"test:e2e-ci": "playwright test --reporter=list",
2525
"test:e2e-ui": "playwright test --ui",

0 commit comments

Comments
 (0)