summary refs log tree commit diff
path: root/src/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundle')
-rw-r--r--src/bundle/Server.ts4
-rw-r--r--src/bundle/start.ts22
-rw-r--r--src/bundle/stats.ts4
3 files changed, 7 insertions, 23 deletions
diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts

index d281120d..ba1715e1 100644 --- a/src/bundle/Server.ts +++ b/src/bundle/Server.ts
@@ -51,9 +51,7 @@ async function main() { await Config.init(); await Sentry.init(app); - await new Promise((resolve) => - server.listen({ port }, () => resolve(undefined)), - ); + await new Promise((resolve) => server.listen({ port }, () => resolve(undefined))); await Promise.all([api.start(), cdn.start(), gateway.start()]); Sentry.errorHandler(app); diff --git a/src/bundle/start.ts b/src/bundle/start.ts
index df50fd4c..beb4762d 100644 --- a/src/bundle/start.ts +++ b/src/bundle/start.ts
@@ -49,21 +49,11 @@ if (cluster.isPrimary) { ███████║██║ ██║ ██║╚██████╗███████╗██████╔╝██║ ██║██║ ██║ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ - spacebar-server | ${yellow( - `Pre-release (${ - commit !== null - ? commit.slice(0, 7) - : "Unknown (Git cannot be found)" - })`, - )} + spacebar-server | ${yellow(`Pre-release (${commit !== null ? commit.slice(0, 7) : "Unknown (Git cannot be found)"})`)} -Commit Hash: ${ - commit !== null - ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` - : "Unknown (Git cannot be found)" - } +Commit Hash: ${commit !== null ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` : "Unknown (Git cannot be found)"} Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) -`), +`) ); if (commit == null) { @@ -98,11 +88,7 @@ Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) }); cluster.on("exit", (worker) => { - console.log( - `[Worker] ${red( - `died with PID: ${worker.process.pid} , restarting ...`, - )}`, - ); + console.log(`[Worker] ${red(`died with PID: ${worker.process.pid} , restarting ...`)}`); cluster.fork(); }); } diff --git a/src/bundle/stats.ts b/src/bundle/stats.ts
index b690eb75..707b77ee 100644 --- a/src/bundle/stats.ts +++ b/src/bundle/stats.ts
@@ -34,8 +34,8 @@ export function initStats() { console.warn( red( `[Process] Warning Spacebar is running as root, this highly discouraged and might expose your system vulnerable to attackers.` + - `Please run Spacebar as a user without root privileges.`, - ), + `Please run Spacebar as a user without root privileges.` + ) ); }