mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat: bootstrap the basic app structure
This commit is contained in:
31
ormconfig.js
Normal file
31
ormconfig.js
Normal file
@@ -0,0 +1,31 @@
|
||||
const devConfig = {
|
||||
type: 'sqlite',
|
||||
database: 'db/db.sqlite3',
|
||||
synchronize: true,
|
||||
logging: true,
|
||||
entities: ['src/entity/**/*.ts'],
|
||||
migrations: ['src/migration/**/*.ts'],
|
||||
cli: {
|
||||
entitiesDir: 'src/entity',
|
||||
migrationsDir: 'src/migration',
|
||||
},
|
||||
};
|
||||
|
||||
const prodConfig = {
|
||||
type: 'sqlite',
|
||||
database: 'db/db.sqlite3',
|
||||
synchronize: false,
|
||||
logging: false,
|
||||
entities: ['dist/entity/**/*.js'],
|
||||
migrations: ['dist/migration/**/*.js'],
|
||||
migrationsRun: true,
|
||||
cli: {
|
||||
entitiesDir: 'dist/entity',
|
||||
migrationsDir: 'dist/migration',
|
||||
},
|
||||
};
|
||||
|
||||
const finalConfig =
|
||||
process.env.NODE_ENV !== 'production' ? devConfig : prodConfig;
|
||||
|
||||
module.exports = finalConfig;
|
Reference in New Issue
Block a user