summary refs log tree commit diff
path: root/src/bundle/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundle/Server.ts')
-rw-r--r--src/bundle/Server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts
index 6ba74be6..d281120d 100644
--- a/src/bundle/Server.ts
+++ b/src/bundle/Server.ts
@@ -51,7 +51,9 @@ async function main() {
 	await Config.init();
 	await Sentry.init(app);
 
-	server.listen(port);
+	await new Promise((resolve) =>
+		server.listen({ port }, () => resolve(undefined)),
+	);
 	await Promise.all([api.start(), cdn.start(), gateway.start()]);
 
 	Sentry.errorHandler(app);