Keep server details out of the repo; deploy target comes from HOST or .deploy.env
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
dc2b12a3c6
commit
21202c2ca3
6 changed files with 17 additions and 13 deletions
|
|
@ -21,8 +21,8 @@ See `README.md` for what this is and how it's deployed. This file is how to exte
|
|||
3. **Server side, only if needed:** add `app/tools/<id>.py` exposing `router` (a FastAPI
|
||||
`APIRouter`) with routes under `/api/<id>/…`, and optional `async startup()`/`shutdown()`.
|
||||
`main.py` mounts every module in `tools/` automatically. Persistent files go under
|
||||
`$DATA_DIR` (`/data`, bind-mounted from `/opt/tools/data`). Keep it light: this runs on the
|
||||
shared server (container capped at 192 MB / 0.5 CPU).
|
||||
`$DATA_DIR` (`/data`, bind-mounted from `/opt/tools/data`). Keep it light: it shares a small
|
||||
server with other workloads (container capped at 192 MB / 0.5 CPU).
|
||||
4. Prefer running in the browser. Vendor any library into `static/vendor/` (pinned version in
|
||||
the filename comment or README); the CSP allows scripts from `'self'` only, no CDNs.
|
||||
|
||||
|
|
@ -42,3 +42,6 @@ See `README.md` for what this is and how it's deployed. This file is how to exte
|
|||
the initial page light (the server's upstream is slow).
|
||||
- Run `node --test tests/` and check the page in a browser before deploying; `deploy.sh` refuses
|
||||
to deploy if the tests fail.
|
||||
- **This repo is public. Never commit anything about the machines it runs on**: no IPs, SSH
|
||||
targets, hostnames, providers, network layout or tunnel setup. The deploy target lives in the
|
||||
gitignored `.deploy.env`; operational notes belong in the private homelab docs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue