mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 17:06:43 -06: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();
|