Update Deployment Tutorial

This commit is contained in:
Liujian committed 2025-10-20 17:11:52 +08:00
1 parent 0d1dff05d6
commit ae7b6d20e4
5 files changed
+18 -10

No files matched your search

+2 -2
View File
@@ -100,7 +100,7 @@ curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
支持系统包括:
- CentOS 7.9 / 8.5
- Ubuntu 20.04 / 22.04
- Ubuntu 20.04 / 22.04 / 24.04
- Debian 12.4
- 阿里云 Linux 2.1903 / 3.2104
@@ -125,7 +125,7 @@ curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
docker-compose up -d
```
4. 打开浏览器访问 `http://localhost:3000` 使用平台
4. 打开浏览器访问 `http://localhost:8000` 使用平台
</details>
+11 -3
View File
@@ -212,8 +212,16 @@ curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
> Requirements:
> - Node >= 22.x
> - Pnpm >= 10.x
1. Execute the frontend build script
1. Configure environment variable NEXT_PUBLIC_API_URL:
```
vi frontend/.env
```
File content:
```
NEXT_PUBLIC_API_URL=http://127.0.0.1:8001
```
2. Execute the frontend build script
```
cd scripts && ./frontend_build.sh && cd ../
```
@@ -269,7 +277,7 @@ curl -sSO https://xpack.ai/install/quick-start.sh; bash quick-start.sh
```
### Docker Build
```
docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.0.0 -f ./scripts/Dockerfile ./
docker build -t xpack-mcp-market --build-arg APP=xpack-mcp-market --build-arg VERSION=1.1.0 -f ./scripts/Dockerfile ./
```
</details>
+1 -2
View File
@@ -26,8 +26,7 @@ services:
networks:
- xpack
ports:
- "3000:3000"
- "8002:8002"
- "8000:80"
depends_on:
- xpack-mysql
- xpack-redis
+3 -2
View File
@@ -39,7 +39,7 @@ MYSQL_DATA_MOUNT="/var/lib/xpack/mysql"
REDIS_PASSWORD="redis_6sJZDm"
REDIS_MAP_PORT=6379
XPACK_MCP_MARKET_MAP_PORT=3000
XPACK_MCP_MARKET_MAP_PORT=8000
RABBITMQ_USER="rabbitmq"
RABBITMQ_PASSWORD="rabbitmq_Gs123dA"
@@ -1064,8 +1064,9 @@ operate() {
Install_Deb_Pack
fi
write_ip_env
sleep 5s
#sleep 5s
echo_info "start docker..."
systemctl reset-failed docker.service
systemctl start docker
echo_info "start network..."
+1 -1
View File
@@ -147,7 +147,7 @@ app.add_middleware(AuthMiddleware)
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_credentials=False,
allow_methods=["*"],
allow_headers=["*"],
)