refactor(multi-server): update logs

This commit is contained in:
Mauricio Siu
2024-09-22 19:28:19 -06:00
parent 639bc0e8db
commit b04c1206e4
3 changed files with 0 additions and 6 deletions

View File

@@ -65,7 +65,6 @@ const installRequirements = async (serverId: string, logPath: string) => {
return new Promise<void>((resolve, reject) => {
client
.once("ready", () => {
console.log("Client :: ready");
const bashCommand = `
${validatePorts()}

View File

@@ -92,7 +92,6 @@ export const getNixpacksCommand = (
/* No need for any start command, since we'll use nginx later on */
args.push("--no-error-without-start");
}
console.log("args", args);
const command = `nixpacks ${args.join(" ")}`;
let bashCommand = `
echo "Starting nixpacks build..." >> ${logPath};

View File

@@ -23,14 +23,10 @@ export const execAsyncRemote = async (
sleep(1000);
conn
.once("ready", () => {
console.log("Client :: ready");
conn.exec(command, (err, stream) => {
if (err) throw err;
stream
.on("close", (code: number, signal: string) => {
console.log(
`Stream :: close :: code: ${code}, signal: ${signal}`,
);
conn.end();
if (code === 0) {
resolve({ stdout, stderr });