- Fork elmeg-demo codebase for multi-band support - Add data importer infrastructure with base class - Create band-specific importers: - phish.py: Phish.net API v5 - grateful_dead.py: Grateful Stats API - setlistfm.py: Dead & Company, Billy Strings (Setlist.fm) - Add spec-kit configuration for Gemini - Update README with supported bands and architecture
1.2 KiB
1.2 KiB
Deployment Guide
Prerequisites
- Docker & Docker Compose
- Git
Steps
-
Clone the repository (if not already on the server):
git clone <repo-url> cd elmeg -
Environment Variables: Create a
.envfile in the root directory (or rely ondocker-compose.ymldefaults for dev). For production, you should set:POSTGRES_USER=your_user POSTGRES_PASSWORD=your_password POSTGRES_DB=elmeg_db SECRET_KEY=your_production_secret_key -
Build and Run:
docker-compose up --build -d -
Run Migrations: The backend container needs to run migrations.
docker-compose exec backend alembic upgrade head -
Access the App:
- Frontend:
http://localhost:3000(or your server IP) - Backend API:
http://localhost:8000
- Frontend:
Troubleshooting
- Database Connection: Ensure the
backendservice can reachdb. TheDATABASE_URLindocker-compose.ymlshould match the postgres credentials. - API Connectivity: If the frontend (SSR) fails to fetch data, check
INTERNAL_API_URLindocker-compose.yml. It should point tohttp://backend:8000.