Merge pull request #501 from Thesourtimes/master

This commit is contained in:
Samuel 2021-11-10 19:36:51 +01:00 committed by GitHub
commit a4c4ed063f
3 changed files with 7 additions and 4 deletions

View File

@ -85,6 +85,8 @@ export class FosscordServer extends Server {
}); });
this.app = app; this.app = app;
app.use("/api/v6", api);
app.use("/api/v7", api);
app.use("/api/v8", api); app.use("/api/v8", api);
app.use("/api/v9", api); app.use("/api/v9", api);
app.use("/api", api); // allow unversioned requests app.use("/api", api); // allow unversioned requests

View File

@ -38,8 +38,8 @@ dirs.forEach((a) => {
); );
}); });
console.log("Copying src files done"); console.log("[1/2] Copying src files done");
console.log("Compiling src files ..."); console.log("[2/2] Compiling src files ...");
console.log( console.log(
execSync( execSync(

View File

@ -38,11 +38,12 @@ if (cluster.isMaster) {
})` })`
)} )}
Current commit: ${ Commit Hash: ${
commit !== null commit !== null
? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})`
: "Unknown (Git cannot be found)" : "Unknown (Git cannot be found)"
} }
Cores: ${cyan(cores)}
`) `)
); );
@ -65,7 +66,7 @@ Current commit: ${
let delay = process.env.DATABASE?.includes("://") ? 0 : i * 1000; let delay = process.env.DATABASE?.includes("://") ? 0 : i * 1000;
setTimeout(() => { setTimeout(() => {
cluster.fork(); cluster.fork();
console.log(`[Process] worker ${i} started.`); console.log(`[Process] worker ${cyan(i)} started.`);
}, delay); }, delay);
} }