server: fix sqlite database location
This commit is contained in:
parent
fb38ecc932
commit
a3130e6d2a
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { Sequelize } from 'sequelize-typescript';
|
||||||
export const sequelize = new Sequelize({
|
export const sequelize = new Sequelize({
|
||||||
dialect: 'sqlite',
|
dialect: 'sqlite',
|
||||||
database: 'drift',
|
database: 'drift',
|
||||||
storage: process.env.MEMORY_DB === "true" ? ":memory:" : __dirname + './../drift.sqlite',
|
storage: process.env.MEMORY_DB === "true" ? ":memory:" : __dirname + '/../../drift.sqlite',
|
||||||
models: [__dirname + '/models'],
|
models: [__dirname + '/models'],
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue