mirror of
https://github.com/spacebarchat/server.git
synced 2026-09-09 01:14:08 +00:00
18 lines
472 B
TypeScript
18 lines
472 B
TypeScript
import moduleAlias from "module-alias";
|
|
moduleAlias(__dirname + "../../package.json");
|
|
process.on("uncaughtException", console.error);
|
|
process.on("unhandledRejection", console.error);
|
|
|
|
import { config } from "dotenv";
|
|
config({ quiet: true });
|
|
|
|
process.env.DB_LOGGING = "true";
|
|
|
|
import { closeDatabase, initDatabase } from "@spacebar/util";
|
|
|
|
initDatabase().then(() => {
|
|
closeDatabase().then((r) => {
|
|
console.log("Successfully applied migrations!");
|
|
});
|
|
});
|