diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 93bae6ba..2c536674 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -16,7 +16,7 @@ jobs: - name: Deploy to server uses: appleboy/ssh-action@v1.0.0 with: - host: 192.168.9.149 + host: 172.16.74.149 username: atai password: wengewudi666808 port: 22 diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 86e6a4bb..03a57eaa 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -15,11 +15,11 @@ ## 📋 部署要求 ### 服务器配置 -- **IP地址**: 192.168.9.149 +- **IP地址**: 172.16.74.149 - **用户**: atai - **端口**: 22 - **部署路径**: /home/atai/kt-financial-system -- **访问地址**: http://192.168.9.149:8080 +- **访问地址**: http://172.16.74.149:8080 ### 依赖环境 - Docker @@ -38,7 +38,7 @@ brew install hudochenkov/sshpass/sshpass SSH登录服务器: ```bash -ssh atai@192.168.9.149 +ssh atai@172.16.74.149 ``` 安装Docker: @@ -105,8 +105,8 @@ docker image prune -f ### 端口映射 - **80** (容器内) → **8080** (宿主机) -- 前端访问: http://192.168.9.149:8080 -- API访问: http://192.168.9.149:8080/api +- 前端访问: http://172.16.74.149:8080 +- API访问: http://172.16.74.149:8080/api ### 环境变量 在 `docker-compose.yml` 中配置: @@ -177,7 +177,7 @@ docker-compose logs -f --tail=100 或: ```bash -ssh atai@192.168.9.149 +ssh atai@172.16.74.149 cd /home/atai/kt-financial-system git pull origin main docker-compose up -d --build diff --git a/deploy.sh b/deploy.sh index 5d5342ee..37084941 100755 --- a/deploy.sh +++ b/deploy.sh @@ -5,7 +5,7 @@ set -e -SERVER_IP="192.168.9.149" +SERVER_IP="172.16.74.149" SERVER_USER="atai" SERVER_PASS="wengewudi666808" DEPLOY_PATH="/home/atai/kt-financial-system"