Files
dyolink/README.md
rameen 38ea07da80 docs: add a manual runbook for production database backup and restore
The steps cover taking a nudentic.ir dump, copying it off the server, loading it into local Postgres, and restoring production in an emergency.
2026-10-06 18:08:02 +03:30

43 lines
1.7 KiB
Markdown

# Dyolink
Monorepo: **NestJS** backend (`backend/`), **Next.js** frontend (`frontend/`), **Docker** stack under `infrastructure/`..
Local development: see **`backend/README.md`** and **`frontend/README.md`**.
**Cursor AI:** project conventions for agents are in [`AGENTS.md`](AGENTS.md), [`.cursor/rules/`](.cursor/rules/), and [`.cursor/skills/`](.cursor/skills/).
---
## Production deploy (`https://nudentic.ir`)
**Full guide:** [`infrastructure/DEPLOY.md`](infrastructure/DEPLOY.md)
**Database backup and restore:** [`infrastructure/BACKUP.md`](infrastructure/BACKUP.md)
Git tag **`v1.0.1`** → Gitea workflow [`.gitea/workflows/prod-tag-deploy.yml`](.gitea/workflows/prod-tag-deploy.yml) builds images (URLs baked for nudentic.ir), pushes to Gitea registry, SSH-deploys the Linux stack.
First-time SSL / Hub fallback: same `DEPLOY.md`.
---
## Staging deploy (`https://wixur.ir`)
**Full guide:** [`infrastructure/STAGING-DEPLOY.md`](infrastructure/STAGING-DEPLOY.md)
Merge or push to **`master`** → Gitea Actions builds images → deploys to `https://wixur.ir` (Gitea: `http://wixur.ir:3000`).
Workflow: [`.gitea/workflows/registry-build-deploy.yml`](.gitea/workflows/registry-build-deploy.yml)
---
## Related paths
| Path | Role |
|------|------|
| `backend/Dockerfile` | API image |
| `frontend/Dockerfile` | Web image (`standalone` + copy `public/` for catalog icons) |
| `infrastructure/STAGING-DEPLOY.md` | Staging setup, Verdaccio, CI variables, blackout checklist |
| `infrastructure/docker-compose.registry.yml` | Pull-only staging stack (registry images + nginx + postgres) |
| `infrastructure/docker-compose.verdaccio.yml` | Local npm warehouse on the Windows build PC |
| `infrastructure/deploy.registry.env.example` | Template for `deploy.registry.env` |