diff --git a/api/src/Server.ts b/api/src/Server.ts index a6887fd..c16bac5 100644 --- a/api/src/Server.ts +++ b/api/src/Server.ts @@ -85,6 +85,8 @@ }); 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/scripts/build.js b/bundle/scripts/build.js index ad00d47..affd789 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -38,8 +38,8 @@ ); }); -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( diff --git a/bundle/src/start.ts b/bundle/src/start.ts index 4445fde..f683d3e 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -38,11 +38,12 @@ })` )} -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 @@ 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); }