chore: zz
This commit is contained in:
@@ -45,8 +45,11 @@ fastify.post(
|
||||
// TODO: healthcheck
|
||||
reply.status(200).send("fetched successfully");
|
||||
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) {
|
||||
console.error(error);
|
||||
reply.status(500).send("Update failed");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user