fix: port 3000 > 3020, APP_DIR /opt/cirux > /home/ubuntu/cirux
This commit is contained in:
+5
-5
@@ -5,7 +5,7 @@
|
||||
```
|
||||
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
|
||||
│ Internet │────▶│ Nginx (80/443) │───▶│ Next.js │
|
||||
│ │ │ Reverse Proxy │ │ (port 3000)│
|
||||
│ │ │ Reverse Proxy │ │ (port 3020)│
|
||||
└─────────────┘ └──────────────┘ └─────────────┘
|
||||
│
|
||||
┌──────┴──────┐
|
||||
@@ -19,8 +19,8 @@
|
||||
### 1. Clone & Prepare
|
||||
|
||||
```bash
|
||||
git clone <your-repo> /opt/cirux
|
||||
cd /opt/cirux
|
||||
git clone <your-repo> /home/ubuntu/cirux
|
||||
cd /home/ubuntu/cirux
|
||||
```
|
||||
|
||||
### 2. Configure Environment
|
||||
@@ -159,7 +159,7 @@ jobs:
|
||||
username: ${{ secrets.VPS_USER }}
|
||||
key: ${{ secrets.VPS_SSH_KEY }}
|
||||
script: |
|
||||
cd /opt/cirux
|
||||
cd /home/ubuntu/cirux
|
||||
git pull
|
||||
docker-compose down
|
||||
docker-compose build --no-cache
|
||||
@@ -189,7 +189,7 @@ docker-compose restart nginx
|
||||
### Health check fails
|
||||
```bash
|
||||
# Test locally
|
||||
curl http://localhost:3000/api/health
|
||||
curl http://localhost:3020/api/health
|
||||
# Should return {"status":"ok"}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user