Skip to content

Commit

Permalink
stop db logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Aug 26, 2024
1 parent 0150fc4 commit 6213d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function loadConfig() {
password: process.env.DB_PASS ?? 'postgres',
database: process.env.DB_NAME ?? 'postgres',
synchronize: NODE_ENV === 'development' ? false : false, // true shouldn't be used in production - otherwise you can lose production data.
logging: true,
logging: false,
dropSchema: false, // Don't use this in production - Drops the schema each time data source is being initialized.
migrationsRun: true, // if migrations should be auto run on every application launch. As an alternative, you can use CLI and run migration:run command.
migrations: [`dist/db/migrations/*.js`], // list of migrations that need to be loaded by TypeORM
Expand Down

0 comments on commit 6213d09

Please sign in to comment.