Răsfoiți Sursa

chore(dev-server): Add runMigrations to bootstrap

Michael Bromley 11 luni în urmă
părinte
comite
341003bd17
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      packages/dev-server/index.ts

+ 3 - 2
packages/dev-server/index.ts

@@ -1,11 +1,12 @@
-import { bootstrap, JobQueueService } from '@vendure/core';
+import { bootstrap, JobQueueService, runMigrations } from '@vendure/core';
 
 import { devConfig } from './dev-config';
 
 /**
  * This bootstraps the dev server, used for testing Vendure during development.
  */
-bootstrap(devConfig)
+runMigrations(devConfig)
+    .then(() => bootstrap(devConfig))
     .then(app => {
         if (process.env.RUN_JOB_QUEUE === '1') {
             return app.get(JobQueueService).start();