feat: 初始化项目

This commit is contained in:
richarjiang
2025-08-13 15:17:33 +08:00
commit 4f9d648a50
72 changed files with 29051 additions and 0 deletions

24
deploy-simple.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
# 简化版发布脚本
SERVER_HOST="119.91.211.52"
SERVER_USER="root"
SERVER_PATH="/usr/local/web/love-tips-server"
echo "🚀 开始部署到服务器..."
# 1. 本地构建
echo "📦 本地构建项目..."
yarn install && yarn build
# 2. 同步文件到服务器
echo "📤 同步文件到服务器..."
rsync -avz --exclude=node_modules --exclude=.git --exclude=.env --exclude=.env.local --exclude=.env.*.local \
./ "$SERVER_USER@$SERVER_HOST:$SERVER_PATH/"
# 3. 在服务器上启动服务
echo "🔄 启动服务..."
ssh "$SERVER_USER@$SERVER_HOST" "cd $SERVER_PATH && chmod +x start.sh && ./start.sh"
echo "✅ 部署完成!"
echo "查看状态: ssh $SERVER_USER@$SERVER_HOST 'cd $SERVER_PATH && pm2 status'"