mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
fix: replace localhost with 127.0.0.1 and auto-detect server IP
- Install script now auto-detects server IP for remote deployments - Changed all localhost:3000 references to 127.0.0.1:3000 for local access - Updated README (EN/ZH) and frontend translations
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
|
||||
```
|
||||
|
||||
完成!打开浏览器访问 **http://localhost:3000**
|
||||
完成!打开浏览器访问 **http://127.0.0.1:3000**
|
||||
|
||||
### Docker Compose (手动)
|
||||
|
||||
@@ -114,7 +114,7 @@ curl -O https://raw.githubusercontent.com/NoFxAiOS/nofx/main/docker-compose.prod
|
||||
docker compose -f docker-compose.prod.yml up -d
|
||||
```
|
||||
|
||||
访问 Web 界面: **http://localhost:3000**
|
||||
访问 Web 界面: **http://127.0.0.1:3000**
|
||||
|
||||
```bash
|
||||
# 管理命令
|
||||
@@ -165,7 +165,7 @@ cd web
|
||||
npm run dev
|
||||
```
|
||||
|
||||
访问 Web 界面: **http://localhost:3000**
|
||||
访问 Web 界面: **http://127.0.0.1:3000**
|
||||
|
||||
---
|
||||
|
||||
@@ -185,7 +185,7 @@ npm run dev
|
||||
docker compose -f docker-compose.prod.yml up -d
|
||||
```
|
||||
|
||||
3. **访问**:在浏览器打开 **http://localhost:3000**
|
||||
3. **访问**:在浏览器打开 **http://127.0.0.1:3000**
|
||||
|
||||
### 方法二:WSL2(适合开发)
|
||||
|
||||
@@ -235,7 +235,7 @@ npm run dev
|
||||
cd web && npm install && npm run dev
|
||||
```
|
||||
|
||||
5. **访问**:在 Windows 浏览器打开 **http://localhost:3000**
|
||||
5. **访问**:在 Windows 浏览器打开 **http://127.0.0.1:3000**
|
||||
|
||||
### 方法三:WSL2 + Docker(两全其美)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user