mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-25 19:52:36 +01:00
start listening before starting components in bundle
This commit is contained in:
parent
40ad7bb3af
commit
797778db68
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user