6b5ec1d290
Replace the previous Next.js build + rsync + archive workflow with a minimal `push_to_server` helper that only does `git push` to the `server` remote. Build, install, and start are now expected to be handled by the server's post-receive hook, removing duplicate logic and shrinking the script from 164 lines to 46. The old `build`, `deploy`, `archive`, `setup_env`, and `check_local_build_dir` functions (along with pnpm/rsync/sshpass usage) have been removed.
17 lines
386 B
Bash
Executable File
17 lines
386 B
Bash
Executable File
#!/bin/bash
|
|
# ==========================================
|
|
# 测试环境 Web 部署脚本(Next.js + git push 模型)
|
|
# 原始 Dart: scripts/deploy/deploy_web_test.sh
|
|
# ==========================================
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/_deploy_lib.sh"
|
|
|
|
# 主函数
|
|
main() {
|
|
push_to_server "test"
|
|
purge_cdn_cache
|
|
}
|
|
|
|
main
|