mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 15:22:43 +00:00
Nix test VM, migrations helper script
This commit is contained in:
1 parent
dd58e7509e
commit
1f42f4b888
9 files changed
+276
No files matched your search
@@ -0,0 +1,15 @@
|
||||
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) => {});
|
||||
});
|
||||
Reference in new issue
Block a user