mitlist/be
google-labs-jules[bot] 4540ad359e Fix(docker): Run Alembic migrations on container startup
This commit introduces changes to ensure that Alembic database migrations
are automatically applied when the backend Docker container starts.

Key changes:
- Added `be/entrypoint.sh`: This script first runs `alembic upgrade head`
  to apply any pending migrations and then executes the main container
  command (e.g., starting Uvicorn).
- Modified `be/Dockerfile`:
    - The `entrypoint.sh` script is copied into the image and made executable.
    - The Docker `ENTRYPOINT` is set to this script, ensuring migrations
      run before the application starts.
- Updated `docker-compose.yml`:
    - The `DATABASE_URL` for the `backend` service has been set to the
      Neon database URL you provided.
- Verified `be/alembic/env.py`: Confirmed that it correctly sources the
  `DATABASE_URL` from environment variables for Alembic to use.

These changes address the issue where migrations were not being run,
preventing the application from starting correctly.
2025-06-01 17:10:40 +00:00
..
alembic refactor: Simplify upgrade function by directly creating enums and adding new tables for chores and chore assignments in the initial schema 2025-06-01 18:20:31 +02:00
app refactor: Separate async migration logic into dedicated module and streamline migration functions for improved clarity and maintainability 2025-06-01 17:33:04 +02:00
tests feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
.dockerignore refactor: Revise .dockerignore and Dockerfile for enhanced build efficiency and organization 2025-06-01 16:14:55 +02:00
.gitignore weeee💃 2025-03-30 16:02:49 +02:00
alembic.ini weeee💃 2025-03-30 16:02:49 +02:00
Dockerfile Fix(docker): Run Alembic migrations on container startup 2025-06-01 17:10:40 +00:00
Dockerfile.prod fix: Add Alembic directory and configuration file to production Dockerfile for migration support 2025-06-01 17:16:26 +02:00
entrypoint.sh Fix(docker): Run Alembic migrations on container startup 2025-06-01 17:10:40 +00:00
pytest.ini Implement test fixtures for async database sessions and enhance test coverage for CRUD operations. Introduce mock settings for financial endpoints and improve error handling in user and settlement tests. Refactor existing tests to utilize async mocks for better reliability and clarity. 2025-05-20 01:18:31 +02:00
requirements.txt feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00