Initial commit: TradeMate 外贸小助手 MVP
项目结构: - backend/ Python FastAPI 后端 - uni-app/ uni-app跨端前端 - docs/ 设计文档 - docker-compose.yml Docker编排 - nginx/scripts/systemd 运维配置 已完成功能: - 用户认证 (JWT) - 智能翻译 + 回复建议 - 营销素材生成 - 客户管理 + 沉默检测 - 报价单管理 - 产品库管理 - 汇率换算 - 推送通知 (uni-push) - WhatsApp Webhook框架 - Celery定时任务
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "=== TradeMate Deployment ==="
|
||||
|
||||
cd /opt/trademate
|
||||
|
||||
echo "Pulling latest changes..."
|
||||
git pull origin main
|
||||
|
||||
echo "Building Docker images..."
|
||||
docker-compose build
|
||||
|
||||
echo "Running migrations..."
|
||||
docker-compose run --rm backend alembic upgrade head
|
||||
|
||||
echo "Restarting services..."
|
||||
docker-compose restart
|
||||
|
||||
echo "Checking service health..."
|
||||
sleep 5
|
||||
curl -f http://localhost:8000/health || echo "Health check failed!"
|
||||
|
||||
echo "=== Deployment Complete ==="
|
||||
Reference in New Issue
Block a user