misskey/src/init.ts
2019-05-26 13:42:53 +09:00

12 lines
232 B
TypeScript

import { initDb } from './db/postgre';
console.log('Init database...');
initDb(false, true, true).then(() => {
console.log('Done :)');
process.exit(0);
}, e => {
console.error('Failed to init database');
console.error(e);
});