summary refs log tree commit diff
path: root/bundle/src/Server.ts
diff options
context:
space:
mode:
authoruurgothat <cckhmck@gmail.com>2021-10-24 18:13:51 +0300
committeruurgothat <cckhmck@gmail.com>2021-10-24 18:13:51 +0300
commit537da73d3858d123ea4b15fe77342b6a2ba61969 (patch)
tree5a5926092301c12f0e55bbff170934fff2dd94a6 /bundle/src/Server.ts
parentFormat the file (diff)
parentMerge pull request #492 from fosscord/translation (diff)
downloadserver-537da73d3858d123ea4b15fe77342b6a2ba61969.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-server
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..e461ec5f 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 = process.env.NODE_ENV == "development" ? false : 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