mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-09 12:12:35 +01:00
start listening before starting components in bundle
This commit is contained in:
parent
1d19db52eb
commit
eb62028103
@ -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