Technical: Deployment¶
Streamlit App¶
Local¶
Streamlit Cloud¶
- Push repo to GitHub
- Create app at Streamlit Cloud → point to
src/app.py - Set secrets:
YELP_API_KEYOPENAI_API_KEY(optional)- Deploy
Automated Data Refresh (GitHub Actions)¶
- Use the provided workflow in
.github/workflows/mkdocs.ymlfor docs - Add a similar workflow (not included here) to run
auto_refresh_data.py --mode incrementalon schedule if needed
MkDocs Documentation → GitHub Pages¶
- Confirm
mkdocs.ymlhas yoursite_url, repo links - Ensure workflow
.github/workflows/mkdocs.ymlexists - GitHub → Settings → Pages → Branch:
gh-pages(root) - Push to
main; docs auto-deploy to:
Environment & Secrets¶
- Keep API keys in environment (local
.env) or GitHub Secrets (CI) - Never commit secrets to the repo
Data Storage¶
- Generated data under
data/folders; excluded by.gitignore
Rollback¶
- Use backups under
data/backups/ - Rebuild index with
build_rag_index.pyafter restore