From b7d2467ca2ae6967858c2ab8933526ba4b970f97 Mon Sep 17 00:00:00 2001 From: Thesourtimes Date: Wed, 10 Nov 2021 19:35:28 +0300 Subject: [PATCH 1/2] Added phase numbers to build --- bundle/scripts/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js index ad00d47f..affd7892 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -38,8 +38,8 @@ dirs.forEach((a) => { ); }); -console.log("Copying src files done"); -console.log("Compiling src files ..."); +console.log("[1/2] Copying src files done"); +console.log("[2/2] Compiling src files ..."); console.log( execSync( From c33672058d8e41dd7d864c0f5fc8d3a81b82a65f Mon Sep 17 00:00:00 2001 From: Thesourtimes Date: Wed, 10 Nov 2021 19:44:11 +0300 Subject: [PATCH 2/2] API versions 6 & 7 with minor logging additions --- api/src/Server.ts | 2 ++ bundle/src/start.ts | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/api/src/Server.ts b/api/src/Server.ts index a6887fd4..c16bac5c 100644 --- a/api/src/Server.ts +++ b/api/src/Server.ts @@ -85,6 +85,8 @@ export class FosscordServer extends Server { }); this.app = app; + app.use("/api/v6", api); + app.use("/api/v7", api); app.use("/api/v8", api); app.use("/api/v9", api); app.use("/api", api); // allow unversioned requests diff --git a/bundle/src/start.ts b/bundle/src/start.ts index 4445fde6..f683d3e3 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -38,11 +38,12 @@ if (cluster.isMaster) { })` )} -Current commit: ${ +Commit Hash: ${ commit !== null ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` : "Unknown (Git cannot be found)" } +Cores: ${cyan(cores)} `) ); @@ -65,7 +66,7 @@ Current commit: ${ let delay = process.env.DATABASE?.includes("://") ? 0 : i * 1000; setTimeout(() => { cluster.fork(); - console.log(`[Process] worker ${i} started.`); + console.log(`[Process] worker ${cyan(i)} started.`); }, delay); }