Update prod IP and document git@ remote requirement
This commit is contained in:
parent
00fa420743
commit
db953de183
@ -31,7 +31,7 @@ The `.env` on the dev machine should use `spicebook.l.warehack.ing` — the `.l.
|
|||||||
|
|
||||||
## Deployment to Production
|
## Deployment to Production
|
||||||
|
|
||||||
Production runs on `warehack.ing` (149.28.126.25) behind caddy-docker-proxy.
|
Production runs on `warehack.ing` (64.177.113.31) behind caddy-docker-proxy.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. Push changes
|
# 1. Push changes
|
||||||
@ -52,6 +52,7 @@ docker compose -f docker-compose.yml -f docker-compose.prod.yml logs --tail=20
|
|||||||
### Production environment notes
|
### Production environment notes
|
||||||
|
|
||||||
- `.env` on the production server is NOT tracked in git — edit it directly on the server when adding new env vars
|
- `.env` on the production server is NOT tracked in git — edit it directly on the server when adding new env vars
|
||||||
|
- The prod checkout's git remote must use the `git@` user: `git@git.supported.systems:warehack.ing/spicebook.git`. The scp-style `host:path` form defaults to the server's login user (`warehack-ing`) and gitea rejects it with `Permission denied (publickey)`. `ssh -A` forwards your local key through for the fetch.
|
||||||
- `BACKEND_INTERNAL_URL=http://backend:8000` must be set for SSR server-side fetches (frontend talks to backend over Docker network)
|
- `BACKEND_INTERNAL_URL=http://backend:8000` must be set for SSR server-side fetches (frontend talks to backend over Docker network)
|
||||||
- `notebooks/user/` must be world-writable (chmod 777) because the backend runs as non-root user `spicebook` but the bind mount is owned by `warehack-ing`
|
- `notebooks/user/` must be world-writable (chmod 777) because the backend runs as non-root user `spicebook` but the bind mount is owned by `warehack-ing`
|
||||||
- The `@resvg/resvg-js` native binary requires `node:20-slim` (Debian glibc) — Alpine won't work
|
- The `@resvg/resvg-js` native binary requires `node:20-slim` (Debian glibc) — Alpine won't work
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user