diff options
Diffstat (limited to 'src/init.ts')
| -rw-r--r-- | src/init.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/init.ts b/src/init.ts new file mode 100644 index 0000000000..69c117c140 --- /dev/null +++ b/src/init.ts @@ -0,0 +1,16 @@ +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(); |