mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-15 15:18:06 +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();
|