npm i @fosscord/server-util@1.3.3
This commit is contained in:
parent
094ec2449e
commit
aa602fcace
4
.env.example
Normal file
4
.env.example
Normal file
@ -0,0 +1,4 @@
|
||||
MONGO_URL=mongodb://localhost/fosscord
|
||||
PORT=3002
|
||||
PRODUCTION=TRUE
|
||||
THREADS=# automatically use all available cores, only available if production = true
|
||||
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -13,7 +13,7 @@
|
||||
"author": "Fosscord",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@fosscord/server-util": "^1.3.2",
|
||||
"@fosscord/server-util": "^1.3.3",
|
||||
"ajv": "^8.5.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import "missing-native-js-functions";
|
||||
import dotenv from "dotenv";
|
||||
dotenv.config();
|
||||
import { db } from "@fosscord/server-util";
|
||||
import { Config, db } from "@fosscord/server-util";
|
||||
import { Server as WebSocketServer } from "ws";
|
||||
import { Connection } from "./events/Connection";
|
||||
|
||||
@ -36,6 +36,7 @@ export class Server {
|
||||
// @ts-ignore
|
||||
await (db as Promise<Connection>);
|
||||
await this.setupSchema();
|
||||
await Config.init();
|
||||
console.log("[DB] connected");
|
||||
console.log(`[Gateway] online on 0.0.0.0:${port}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user