mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor(multi-server): update logs
This commit is contained in:
@@ -65,7 +65,6 @@ const installRequirements = async (serverId: string, logPath: string) => {
|
|||||||
return new Promise<void>((resolve, reject) => {
|
return new Promise<void>((resolve, reject) => {
|
||||||
client
|
client
|
||||||
.once("ready", () => {
|
.once("ready", () => {
|
||||||
console.log("Client :: ready");
|
|
||||||
const bashCommand = `
|
const bashCommand = `
|
||||||
|
|
||||||
${validatePorts()}
|
${validatePorts()}
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ export const getNixpacksCommand = (
|
|||||||
/* No need for any start command, since we'll use nginx later on */
|
/* No need for any start command, since we'll use nginx later on */
|
||||||
args.push("--no-error-without-start");
|
args.push("--no-error-without-start");
|
||||||
}
|
}
|
||||||
console.log("args", args);
|
|
||||||
const command = `nixpacks ${args.join(" ")}`;
|
const command = `nixpacks ${args.join(" ")}`;
|
||||||
let bashCommand = `
|
let bashCommand = `
|
||||||
echo "Starting nixpacks build..." >> ${logPath};
|
echo "Starting nixpacks build..." >> ${logPath};
|
||||||
|
|||||||
@@ -23,14 +23,10 @@ export const execAsyncRemote = async (
|
|||||||
sleep(1000);
|
sleep(1000);
|
||||||
conn
|
conn
|
||||||
.once("ready", () => {
|
.once("ready", () => {
|
||||||
console.log("Client :: ready");
|
|
||||||
conn.exec(command, (err, stream) => {
|
conn.exec(command, (err, stream) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
stream
|
stream
|
||||||
.on("close", (code: number, signal: string) => {
|
.on("close", (code: number, signal: string) => {
|
||||||
console.log(
|
|
||||||
`Stream :: close :: code: ${code}, signal: ${signal}`,
|
|
||||||
);
|
|
||||||
conn.end();
|
conn.end();
|
||||||
if (code === 0) {
|
if (code === 0) {
|
||||||
resolve({ stdout, stderr });
|
resolve({ stdout, stderr });
|
||||||
|
|||||||
Reference in New Issue
Block a user