Add app start script
This commit is contained in:
parent
fe19f200d7
commit
950ec6ae55
3 changed files with 96 additions and 0 deletions
22
README.md
22
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue