diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-17 22:42:16 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-17 22:42:16 +0200 |
commit | e611126c7c168b7c14e6d79fe02e1f996937bbfc (patch) | |
tree | ffe0135fdf4ca7ae9b9005bbb85a6689345a06c2 /bundle/src | |
parent | :sparkles: mention regex (diff) | |
download | server-e611126c7c168b7c14e6d79fe02e1f996937bbfc.tar.xz |
:art: clean up
Diffstat (limited to 'bundle/src')
-rw-r--r-- | bundle/src/Server.ts | 5 | ||||
-rw-r--r-- | bundle/src/stats.ts | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index c6acf0ad..e0586601 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -33,9 +33,8 @@ async function main() { }, }); - await api.start(); - await cdn.start(); - await gateway.start(); + await Promise.all([api.start(), cdn.start(), gateway.start()]); + console.log(`[Server] listening on port ${port}`); } main().catch(console.error); diff --git a/bundle/src/stats.ts b/bundle/src/stats.ts index 6413f347..37ddb4e2 100644 --- a/bundle/src/stats.ts +++ b/bundle/src/stats.ts @@ -2,6 +2,7 @@ import os from "os"; import osu from "node-os-utils"; export function initStats() { + console.log(`[Path] running in ${__dirname}`); console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`); console.log(`[System] ${os.platform()} ${os.arch()}`); console.log(`[Database] started`); |