refactor(deploy): parameterize git remote in deploy scripts

Replace hardcoded GIT_REMOTE variable with a function parameter so the
shared deploy library can push to either the production or test remote
from the same script. Rename push_to_server to push_to_remote and update
both deploy_web.sh and deploy_web_test.sh to pass the appropriate remote.
This commit is contained in:
2026-06-12 14:39:09 +08:00
parent e2abe03a33
commit c39a8f5f80
3 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ source "$SCRIPT_DIR/_deploy_lib.sh"
# 主函数
main() {
push_to_server "test"
push_to_remote "test" "test"
purge_cdn_cache
}