Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsdeman committed Aug 19, 2023
1 parent 042fb47 commit 2b33082
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/mailcowDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ let dataSource;
* Initialize database connection. Setup database if it does not yet exist
*/
export async function initializeMailcowDB(config: ContainerConfig): Promise<void> {
dataSource = new DataSource({
type: 'mariadb',
host: '172.22.1.251',
port: 3306,
username: 'mailcow',
password: config.DB_PASSWORD,
database: 'mailcow',
});
// dataSource = new DataSource({
// type: 'mariadb',
// host: '172.22.1.251',
// port: 3306,
// username: 'mailcow',
// password: config.DB_PASSWORD,
// database: 'mailcow',
// });

dataSource.initialize()
.then(() => console.log('successfully connected'))
.catch((error) => {
console.log('ERROR LOADING DB');
console.log(error);
});
// dataSource.initialize()
// .then(() => console.log('successfully connected'))
// .catch((error) => {
// console.log('ERROR LOADING DB');
// console.log(error);
// });
}

0 comments on commit 2b33082

Please sign in to comment.