summary refs log tree commit diff
path: root/api/scripts/globalSetup.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
commit7d343458ab868ede0cf468e8891333a170fdd24e (patch)
treead9e5464d24dc106734a1c60cf4f299e8d0e8473 /api/scripts/globalSetup.js
parent:sparkles: added User flags (diff)
parent:art: remove start from setup script (diff)
downloadserver-7d343458ab868ede0cf468e8891333a170fdd24e.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-server
Diffstat (limited to 'api/scripts/globalSetup.js')
-rw-r--r--api/scripts/globalSetup.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/api/scripts/globalSetup.js b/api/scripts/globalSetup.js
deleted file mode 100644

index 76cd8e0d..00000000 --- a/api/scripts/globalSetup.js +++ /dev/null
@@ -1,14 +0,0 @@ -const fs = require("fs"); -const { FosscordServer } = require("../dist/Server"); -const Server = new FosscordServer({ port: 3001 }); -global.server = Server; -module.exports = async () => { - try { - fs.unlinkSync(`${__dirname}/../database.db`); - } catch {} - return await Server.start(); -}; - -// afterAll(async () => { -// return await Server.stop(); -// });