Files
cozsweet-frontend-nextjs/scripts/deploy/deploy_web_develop.sh
T
admin 6b5ec1d290 refactor(deploy): simplify script to git push-based deployment
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.
2026-06-10 16:48:50 +08:00

16 lines
368 B
Bash
Executable File

#!/bin/bash
# ==========================================
# 开发环境 Web 部署脚本(Next.js + git push 模型)
# 原始 Dart: scripts/deploy/deploy_web_develop.sh
# ==========================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/_deploy_lib.sh"
# 主函数
main() {
push_to_server "dev"
}
main