Skip to content

Configuration file path from environment variable #608

@p1c2u

Description

@p1c2u

It would be nice to have possibility to set config path with environment variables.

In my case this would be useful for running migrations in docker container. Environment variables are most common and easiest way to configure containers. That's why i would prefer to use ALEMBIC_CONFIG environment variable than alembic -c ${ALEMBIC_CONFIG} which is painful to pass such command.

It's similar like in docker-compose that you can specify compose file with -f option or with COMPOSE_FILE environment variable.

Here's my PR for this #607

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions