|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
const devConfig = {
|
|
|
|
|
type: 'sqlite',
|
|
|
|
|
database: `${process.env.CONFIG_DIRECTORY || 'config'}/db/db.sqlite3`,
|
|
|
|
|
database: process.env.CONFIG_DIRECTORY
|
|
|
|
|
? `${process.env.CONFIG_DIRECTORY}/db/db.sqlite3`
|
|
|
|
|
: 'config/db/db.sqlite3',
|
|
|
|
|
synchronize: true,
|
|
|
|
|
migrationsRun: false,
|
|
|
|
|
logging: false,
|
|
|
|
@ -15,7 +17,9 @@ const devConfig = {
|
|
|
|
|
|
|
|
|
|
const prodConfig = {
|
|
|
|
|
type: 'sqlite',
|
|
|
|
|
database: `${process.env.CONFIG_DIRECTORY || 'config'}/db/db.sqlite3`,
|
|
|
|
|
database: process.env.CONFIG_DIRECTORY
|
|
|
|
|
? `${process.env.CONFIG_DIRECTORY}/db/db.sqlite3`
|
|
|
|
|
: 'config/db/db.sqlite3',
|
|
|
|
|
synchronize: false,
|
|
|
|
|
logging: false,
|
|
|
|
|
entities: ['dist/entity/**/*.js'],
|
|
|
|
|