mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 18:13:08 +02:00
17 lines
300 B
TypeScript
17 lines
300 B
TypeScript
|
import { initDb } from './db/postgre';
|
||
|
|
||
|
async function main() {
|
||
|
try {
|
||
|
console.log('Connecting database...');
|
||
|
await initDb(false, true, true);
|
||
|
} catch (e) {
|
||
|
console.error('Cannot connect to database', null, true);
|
||
|
console.error(e);
|
||
|
process.exit(1);
|
||
|
}
|
||
|
|
||
|
console.log('Done :)');
|
||
|
}
|
||
|
|
||
|
main();
|