summary refs log tree commit diff
path: root/bundle/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 17:38:31 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 17:38:31 +0200
commit45efdb7ce488f160c961e881d2ae3e598426d7f8 (patch)
tree6fdda55c144d2c768618fcccb2579ca89d26e1c1 /bundle/src/Server.ts
parentRevert "fix: make the CDN build correctly" (diff)
downloadserver-45efdb7ce488f160c961e881d2ae3e598426d7f8.tar.xz
:zap: vertically scale bundle
Diffstat (limited to '')
-rw-r--r--bundle/src/Server.ts3
1 files changed, 2 insertions, 1 deletions
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