mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 08:46:44 -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();
|