chore: 增加部署状态与备份保留
This commit is contained in:
1 parent
d2ca528543
commit
7f67f4d685
5 files changed
+75
No files matched your search
@@ -4,6 +4,11 @@ import { spawnSync } from "node:child_process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
if (process.argv.includes("--status")) {
|
||||
const statusScript = path.join(root, "scripts/deploy/status.mjs");
|
||||
const result = spawnSync(process.execPath, [statusScript], { cwd: root, stdio: "inherit" });
|
||||
process.exit(result.status ?? 1);
|
||||
}
|
||||
const target = process.env.DEPLOY_TARGET ?? "oracle_arm";
|
||||
const remoteRoot = process.env.DEPLOY_ROOT ?? "/home/ubuntu/persional-brand";
|
||||
const publicBaseUrl = process.env.PUBLIC_BASE_URL ?? "https://wechat.app.que01.top";
|
||||
|
||||
Reference in new issue
Block a user