Point backend deploy docs at gitea.meshkee.com.
Production now pulls meshkee-app/backend over SSH port 2222 instead of the old git.meshkee.com remote. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
30119e6d9e
commit
c76c3967bb
+4
-4
@@ -8,7 +8,7 @@ API domain: `api.meshkee.com` → `https://api.meshkee.com/api/v1`
|
||||
|
||||
Per-business API aliases (same Nest app on this VM): `api.{apex}` e.g. `api.sanihome.ir` → `https://api.sanihome.ir/api/v1`. Storefronts still pass the **website apex** in paths (`/tenants/sanihome.ir/...`); only the API hostname changes.
|
||||
|
||||
> **Deploy path:** push to `git.meshkee.com` (`Meshkee/backend`), then on the API VM `git fetch` + `reset --hard origin/main` + build + `pm2 restart`. Do **not** rsync the app as the normal update path. The API VM uses a read-only SSH deploy key (`meshkee-api-vm-deploy`). Pin `sharp@0.33.5` — this VM CPU lacks x64-v2 required by sharp 0.35+.
|
||||
> **Deploy path:** push to `gitea.meshkee.com` (`meshkee-app/backend`), then on the API VM `git fetch` + `reset --hard origin/main` + build + `pm2 restart`. Do **not** rsync the app as the normal update path. The API VM uses a read-only SSH deploy key (`meshkee-api-vm-deploy`). Pin `sharp@0.33.5` — this VM CPU lacks x64-v2 required by sharp 0.35+.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -207,7 +207,7 @@ Dashboards VPS keeps using `GET /api/v1/internal/ssl/hosts` (`business.` / `cust
|
||||
|
||||
From your laptop:
|
||||
|
||||
1. Commit and **push** to `origin/main` (`git.meshkee.com/Meshkee/backend`).
|
||||
1. Commit and **push** to `origin/main` (`gitea.meshkee.com/meshkee-app/backend`).
|
||||
2. Deploy on the API VM from that commit (never rsync the tree as the primary path):
|
||||
|
||||
```bash
|
||||
@@ -224,9 +224,9 @@ pm2 restart meshkee-api
|
||||
REMOTE
|
||||
```
|
||||
|
||||
Preserve `/opt/meshkee/app/.env` on the server. App remote must be SSH: `git@git.meshkee.com:Meshkee/backend.git` with the VM deploy key registered as a **read-only deploy key** on the repo.
|
||||
Preserve `/opt/meshkee/app/.env` on the server. App remote must be SSH: `git@gitea.meshkee.com:meshkee-app/backend.git` with the VM deploy key registered as a **read-only deploy key** on the repo.
|
||||
|
||||
Gitea SSH is on **port 222**. On the API VM, `/root/.ssh/config` must set `Port 222` for `Host git.meshkee.com` (system SSH on 22 is not Gitea).
|
||||
Gitea SSH is on **port 2222**. On the API VM, `/root/.ssh/config` must set `Port 2222` for `Host gitea.meshkee.com` (system SSH on 22 is not Gitea).
|
||||
|
||||
## Useful commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user