Deploy app
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import simpleGit from "simple-git";
|
||||
import fs from "fs";
|
||||
|
||||
export async function cloneRepo(repoUrl: string, deployPath: string) {
|
||||
fs.mkdirSync(deployPath, { recursive: true });
|
||||
const git = simpleGit();
|
||||
await git.clone(repoUrl, deployPath, ["--depth=1"]);
|
||||
}
|
||||
Reference in New Issue
Block a user