summary refs log tree commit diff
path: root/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'bundle')
-rw-r--r--bundle/package-lock.json8
-rw-r--r--bundle/package.json2
-rw-r--r--bundle/src/Server.ts5
3 files changed, 8 insertions, 7 deletions
diff --git a/bundle/package-lock.json b/bundle/package-lock.json

index 4991f97a..4c5e5b77 100644 --- a/bundle/package-lock.json +++ b/bundle/package-lock.json
@@ -7,7 +7,7 @@ "": { "name": "@fosscord/server", "version": "1.0.0", - "license": "AGPLV3", + "license": "AGPL-3.0-only", "dependencies": { "@aws-sdk/client-s3": "^3.36.1", "@aws-sdk/node-http-handler": "^3.36.0", @@ -102,7 +102,7 @@ "name": "@fosscord/api", "version": "1.0.0", "hasInstallScript": true, - "license": "AGPLV3", + "license": "AGPL-3.0-only", "dependencies": { "@babel/preset-env": "^7.15.8", "@babel/preset-typescript": "^7.15.0", @@ -165,7 +165,7 @@ "../cdn": { "name": "@fosscord/cdn", "version": "1.0.0", - "license": "AGPLV3", + "license": "AGPL-3.0-only", "dependencies": { "@aws-sdk/client-s3": "^3.36.1", "@aws-sdk/node-http-handler": "^3.36.0", @@ -209,7 +209,7 @@ "name": "@fosscord/gateway", "version": "1.0.0", "hasInstallScript": true, - "license": "AGPLV3", + "license": "AGPL-3.0-only", "dependencies": { "@fosscord/util": "file:../util", "amqplib": "^0.8.0", diff --git a/bundle/package.json b/bundle/package.json
index aedd963b..04dc54b7 100644 --- a/bundle/package.json +++ b/bundle/package.json
@@ -18,7 +18,7 @@ }, "keywords": [], "author": "Fosscord", - "license": "AGPLV3", + "license": "AGPL-3.0-only", "bugs": { "url": "https://github.com/fosscord/fosscord-server/issues" }, diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts
index bc1d7cbc..651e8e64 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts
@@ -33,7 +33,6 @@ process.on('SIGTERM', () => { //this is what has been added for the /stop API route async function main() { - server.listen(port); await initDatabase(); await Config.init(); // only set endpointPublic, if not already set @@ -84,7 +83,7 @@ async function main() { app.use(Sentry.Handlers.requestHandler()); app.use(Sentry.Handlers.tracingHandler()); } - await Promise.all([api.start(), cdn.start(), gateway.start()]); + if (Config.get().sentry.enabled) { app.use(Sentry.Handlers.errorHandler()); app.use(function onError(err: any, req: any, res: any, next: any) { @@ -92,6 +91,8 @@ async function main() { res.end(res.sentry + "\n"); }); } + + await Promise.all([api.start(), cdn.start(), gateway.start()]); console.log(`[Server] ${green(`listening on port ${bold(port)}`)}`); }