const prestartup = require("./modules/prestartup") const database = require("./modules/database") const logger = require("./modules/logger") async function boot() { try { await prestartup.pingDb() await database.runDDL() await prestartup.setupKeys() require("./server") } catch (error) { logger.error("Error while booting", ["STARTUP", "cyan"]) logger.error(error.toString(), ["STARTUP", "cyan"]) } } boot()