Files
monisuo/deploy/deploy_h5.sh
sion ffac6fc267 refactor: 将前端从 uni-app x 重构为 Flutter
变更内容:
- 删除 uni-app x 项目 (app/ 目录)
- 新增 Flutter 项目 (flutter_monisuo/ 目录)
- 新增部署脚本 (deploy/ 目录)

Flutter 项目功能:
- 用户登录/注册
- 首页资产概览
- 行情币种列表
- 交易买卖操作
- 资产账户管理
- 充值/提现/划转
- 深色主题
- JWT Token 认证

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 00:21:21 +08:00

30 lines
729 B
Bash
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
# H5前端部署脚本
PROJECT_PATH="/opt/monisuo/h5"
GIT_REPO="http://sion:woshisaw.@8.155.172.147:3001/sion/monisuo.git"
echo "开始部署H5前端..."
# 创建目录
mkdir -p $PROJECT_PATH
# 拉取代码(如果已存在)
if [ -d "$PROJECT_PATH/.git" ]; then
cd $PROJECT_PATH
git pull origin main
else
git clone $GIT_REPO $PROJECT_PATH
cd $PROJECT_PATH/app
fi
# 注意H5需要通过HBuilderX构建
# 构建后的文件在 dist/build/h5 目录
# 将构建好的文件上传到服务器即可
echo "请先在本地使用HBuilderX构建H5"
echo "1. 发行 → 网站-H5手机版"
echo "2. 构建完成后将 dist/build/h5 目录上传到服务器"
echo "3. Nginx配置指向该目录"