diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0158f47..df5e7e6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,10 +29,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Python 3.10 Setup + - name: Python Setup uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.12" - name: Install dependencies run: | sudo apt-get update diff --git a/app/main.py b/app/main.py index ea30ea3..f587c6a 100644 --- a/app/main.py +++ b/app/main.py @@ -35,7 +35,7 @@ def create_app(config: Optional[str] = None) -> Flask: from .config import get_config_from_env - cfg = get_config_from_env(config or os.getenv("ENV")) + cfg = get_config_from_env(config or os.getenv("FLASK_ENV") or os.getenv("ENV")) app.config.from_object(cfg) with app.app_context():