|
|
@@ -79,6 +79,11 @@ async function getApplicationRef(): Promise<INestApplication | undefined> {
|
|
|
|
|
|
const config = index.config;
|
|
|
config.silent = true;
|
|
|
+
|
|
|
+ // Force the sync mode on, so that all the tables are created
|
|
|
+ // on this initial run.
|
|
|
+ config.dbConnectionOptions.synchronize = true;
|
|
|
+
|
|
|
const { bootstrap } = require('@vendure/core');
|
|
|
console.log('Bootstrapping Vendure server...');
|
|
|
const app = await bootstrap(config);
|