mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-02 16:15:57 +09: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();
|