π Local Deployment¶
This guide walks you through running ContextForge on your local machine using a virtual environment or directly via Python.
π One-Liner Setup¶
The easiest way to start the server in development mode:
This does the following:
- Creates a
.venv/virtual environment - Installs all dependencies (including dev tools)
- Launches Gunicorn on
http://localhost:4444
π§ͺ Development Mode with Live Reload¶
If you want auto-reload on code changes:
Ensure your
.envfile includes:
π Database Configuration¶
By default, ContextForge uses SQLite for simplicity. You can configure alternative databases via the DATABASE_URL environment variable:
Database Recommendation
Use SQLite for development and testing. For production deployments, use PostgreSQL for better concurrency, performance, and reliability.
π§ͺ Health Test¶
Expected output:
π Admin UI¶
Visit http://localhost:4444/admin and login using your PLATFORM_ADMIN_EMAIL and PLATFORM_ADMIN_PASSWORD from .env.