fixed code import bug
Code Quality Pipeline / Test (push) Failing after 3m41s
CI Pipeline / Test (pull_request) Failing after 3m57s
CI Pipeline / Build and Publish (pull_request) Has been skipped

This commit is contained in:
Brian Bjarke Jensen
2024-05-07 20:23:40 +02:00
parent e04ce33891
commit 38fc595725
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ RUN mkdir -p /home/app && \
# add code while changing ownership
WORKDIR $APP_HOME
COPY --chown=app:app ./core ./core
COPY --chown=app:app ./src ./src
COPY --chown=app:app ./web_ui/src ./src
# change to the app user
USER app
+2 -2
View File
@@ -4,12 +4,12 @@ import logging
import os
from pathlib import Path
from app import app
from dotenv import load_dotenv
from .app import app
# prepare optional local setup
env_path = Path(__file__).parent.parent.parent / 'local.env'
assert env_path.exists()
load_dotenv(env_path)
# ensure env vars set