🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Deploy to server
|
- name: Deploy to server
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
host: 192.168.9.149
|
host: 172.16.74.149
|
||||||
username: atai
|
username: atai
|
||||||
password: wengewudi666808
|
password: wengewudi666808
|
||||||
port: 22
|
port: 22
|
||||||
|
|||||||
@@ -15,11 +15,11 @@
|
|||||||
## 📋 部署要求
|
## 📋 部署要求
|
||||||
|
|
||||||
### 服务器配置
|
### 服务器配置
|
||||||
- **IP地址**: 192.168.9.149
|
- **IP地址**: 172.16.74.149
|
||||||
- **用户**: atai
|
- **用户**: atai
|
||||||
- **端口**: 22
|
- **端口**: 22
|
||||||
- **部署路径**: /home/atai/kt-financial-system
|
- **部署路径**: /home/atai/kt-financial-system
|
||||||
- **访问地址**: http://192.168.9.149:8080
|
- **访问地址**: http://172.16.74.149:8080
|
||||||
|
|
||||||
### 依赖环境
|
### 依赖环境
|
||||||
- Docker
|
- Docker
|
||||||
@@ -38,7 +38,7 @@ brew install hudochenkov/sshpass/sshpass
|
|||||||
|
|
||||||
SSH登录服务器:
|
SSH登录服务器:
|
||||||
```bash
|
```bash
|
||||||
ssh atai@192.168.9.149
|
ssh atai@172.16.74.149
|
||||||
```
|
```
|
||||||
|
|
||||||
安装Docker:
|
安装Docker:
|
||||||
@@ -105,8 +105,8 @@ docker image prune -f
|
|||||||
|
|
||||||
### 端口映射
|
### 端口映射
|
||||||
- **80** (容器内) → **8080** (宿主机)
|
- **80** (容器内) → **8080** (宿主机)
|
||||||
- 前端访问: http://192.168.9.149:8080
|
- 前端访问: http://172.16.74.149:8080
|
||||||
- API访问: http://192.168.9.149:8080/api
|
- API访问: http://172.16.74.149:8080/api
|
||||||
|
|
||||||
### 环境变量
|
### 环境变量
|
||||||
在 `docker-compose.yml` 中配置:
|
在 `docker-compose.yml` 中配置:
|
||||||
@@ -177,7 +177,7 @@ docker-compose logs -f --tail=100
|
|||||||
|
|
||||||
或:
|
或:
|
||||||
```bash
|
```bash
|
||||||
ssh atai@192.168.9.149
|
ssh atai@172.16.74.149
|
||||||
cd /home/atai/kt-financial-system
|
cd /home/atai/kt-financial-system
|
||||||
git pull origin main
|
git pull origin main
|
||||||
docker-compose up -d --build
|
docker-compose up -d --build
|
||||||
|
|||||||
Reference in New Issue
Block a user