chore: zz

This commit is contained in:
2025-02-06 05:07:35 +06:00
parent 3c089f12e2
commit 4ba9cd8e19

View File

@@ -45,8 +45,11 @@ fastify.post(
// TODO: healthcheck // TODO: healthcheck
reply.status(200).send("fetched successfully"); reply.status(200).send("fetched successfully");
await execAsync(`git reset --hard origin/${branch}`); await execAsync(`git reset --hard origin/${branch}`);
await execAsync("yarn run build"); const { stdout, stderr } = await execAsync("yarn run build");
console.log(stdout);
console.error(stderr);
} catch (error) { } catch (error) {
console.error(error);
reply.status(500).send("Update failed"); reply.status(500).send("Update failed");
} }
} }