Add app start script

This commit is contained in:
Kacper 2026-04-08 06:14:06 -04:00
parent fe19f200d7
commit 950ec6ae55
3 changed files with 96 additions and 0 deletions

View file

@ -19,6 +19,22 @@ python3 -m venv .venv
.venv/bin/python -m uvicorn app:app --reload
```
### Start App
Build the frontend and then serve the app from FastAPI:
```bash
./scripts/start.sh
```
The script automatically loads `.env` and `.env.local` if present.
Optional runtime overrides:
```bash
HOST=0.0.0.0 PORT=8800 ./scripts/start.sh
```
Optional live Forgejo configuration:
```bash
@ -27,6 +43,12 @@ export FORGEJO_TOKEN="your-forgejo-api-token"
export CALENDAR_FEED_URLS="webcal://example.com/calendar.ics,https://example.com/other.ics"
```
Or put those values in `.env`:
```bash
cp .env.example .env
```
### Frontend
```bash