Files
cozsweet-frontend-nextjs/scripts/deploy/deploy_web_test.sh
T

27 lines
564 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# ==========================================
# 测试环境 Web 部署脚本(Next.js
# 原始 Dart: scripts/deploy/deploy_web_test.sh
# ==========================================
# 设置环境配置文件(Next.js 命名:.env.test
ENV_FILE="env/.env.test"
# 加载服务器配置
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/config/test_server"
# 加载公共函数库
source "$SCRIPT_DIR/_deploy_lib.sh"
# 主函数
main() {
setup_env "$ENV_FILE"
build
deploy
purge_cdn_cache
}
main