Use local server .env via wrapper startup script
This commit is contained in:
@@ -38,7 +38,7 @@ This creates:
|
||||
- `/home/bestmidi/chgrid/server/.venv`
|
||||
- `/home/bestmidi/chgrid/server/config.toml` (if missing)
|
||||
- `/home/bestmidi/chgrid/server/.env` with `CHGRID_AUTH_SECRET` (if missing)
|
||||
- `/etc/sysconfig/chat-grid` with `CHGRID_AUTH_SECRET` for systemd (created/updated automatically)
|
||||
- `/home/bestmidi/chgrid/server/run_server.sh` (loads `.env` then starts server)
|
||||
- On first run only, if no admin exists, it prompts to create one immediately.
|
||||
|
||||
Edit `/home/bestmidi/chgrid/server/config.toml`:
|
||||
@@ -88,8 +88,8 @@ cd /home/bestmidi/chgrid
|
||||
```
|
||||
|
||||
Notes:
|
||||
- `install_service.sh` creates a systemd drop-in at `/etc/systemd/system/chat-grid.service.d/env.conf`
|
||||
pointing `EnvironmentFile` to `/etc/sysconfig/chat-grid`.
|
||||
- Service startup uses `/home/bestmidi/chgrid/server/run_server.sh`, which sources local
|
||||
`/home/bestmidi/chgrid/server/.env` before launching Python.
|
||||
|
||||
Logs:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user