chore: zz
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user