|
|
@ -1,6 +1,8 @@
|
|
|
|
const devConfig = {
|
|
|
|
const devConfig = {
|
|
|
|
type: 'sqlite',
|
|
|
|
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,
|
|
|
|
synchronize: true,
|
|
|
|
migrationsRun: false,
|
|
|
|
migrationsRun: false,
|
|
|
|
logging: false,
|
|
|
|
logging: false,
|
|
|
@ -15,7 +17,9 @@ const devConfig = {
|
|
|
|
|
|
|
|
|
|
|
|
const prodConfig = {
|
|
|
|
const prodConfig = {
|
|
|
|
type: 'sqlite',
|
|
|
|
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,
|
|
|
|
synchronize: false,
|
|
|
|
logging: false,
|
|
|
|
logging: false,
|
|
|
|
entities: ['dist/entity/**/*.js'],
|
|
|
|
entities: ['dist/entity/**/*.js'],
|
|
|
|