From f6b00d2fcd32747974a0963e0da32cf2511c8ffb Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 18 Oct 2021 17:38:31 +0200 Subject: :zap: vertically scale bundle --- bundle/src/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bundle/src/Server.ts') diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index d541735f..f29cd649 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -12,7 +12,7 @@ import { Config, initDatabase } from "@fosscord/util"; const app = express(); const server = http.createServer(); const port = Number(process.env.PORT) || 3001; -const production = false; +const production = true; server.on("request", app); // @ts-ignore @@ -23,6 +23,7 @@ const cdn = new CDNServer({ server, port, production, app }); const gateway = new Gateway.Server({ server, port, production }); async function main() { + server.listen(port); await initDatabase(); await Config.init(); // only set endpointPublic, if not already set -- cgit 1.5.1