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:
@@ -9,7 +9,7 @@ source "$SCRIPT_DIR/_deploy_lib.sh"
|
||||
|
||||
# 主函数
|
||||
main() {
|
||||
push_to_server "test"
|
||||
push_to_remote "test" "test"
|
||||
purge_cdn_cache
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user