USE_COMMUNITY_FEATURES=True
to your .env
file.make dev
for the First Time:
make migrate
before executing make dev
.psycopg2
:
psycopg2
with psycopg2-binary
in pyproject.toml
.pg_config
Executable Not Found:
brew install postgresql
docker_compose.yml
:
terrarium:
platform: linux/amd64
image: ghcr.io/cohere-ai/terrarium:latest
ports:
- '8080:8080'
expose:
- '8080'
make dev
to start the Docker containers with reloading enabled.make attach
to attach an interactive shell for debugging.import pdb; pdb.set_trace()
in your code for debugging.docker compose run --build backend alembic -c src/backend/alembic.ini downgrade -1
<my_migration_id>.py
).make migrate
to sync with the main branch.make migration message="Your migration changes"