Files
yuezi-saas/deploy.sh
T
li ee2b1757d0 feat: 员工自助注册+审核流程
- 新增 registration_packages 表:管理员配置注册套餐(名称/角色)
- AuthController 新增 register() 和 registrationPackages() 公开接口
- UserController 新增 approve() / reject() 审核接口
- StoreController 新增 publicList() 公开门店列表
- 前端 /register 注册页:选门店→选岗位套餐→填信息→提交
- 前端 system/registration-packages:套餐 CRUD
- 用户管理页:待审核状态展示 + 通过/拒绝快捷操作
- 登录页底部加「申请注册」跳转链接
- 路由白名单加 /register
2026-03-14 17:39:50 +08:00

27 lines
584 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
# 月子 SaaS 一键部署
# 用法:./deploy.sh [commit message]
set -e
SERVER="root@82.157.47.215"
COMMIT_MSG="${1:-deploy: update}"
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "▶ 构建前端..."
cd "$ROOT_DIR/frontend"
npm run build
echo "▶ 提交变更(含 dist..."
cd "$ROOT_DIR"
git add -A
git diff --cached --quiet && echo " 无变更,跳过提交" || git commit -m "$COMMIT_MSG"
echo "▶ 推送到远程..."
git push origin main
echo "▶ 通知服务器更新..."
ssh "$SERVER" '/var/www/saas/deploy.sh'
echo ""
echo "✅ 部署完成!"