Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Config does not pick up .env in load_dotenv() #45

Open
niumalta-tech opened this issue Sep 3, 2022 · 1 comment
Open

[API] Config does not pick up .env in load_dotenv() #45

niumalta-tech opened this issue Sep 3, 2022 · 1 comment

Comments

@niumalta-tech
Copy link

Had to add the following for it to pick up:

dotenv_path = os.path.abspath(os.path.join(os.path.dirname(file), '..', '.env'))
load_dotenv(dotenv_path)

@alexisprunier
Copy link
Contributor

The ".env" file the the API is initially supposed to be in the "oxe-api" folder. In this way; we have separately environment files for the three component of this repository (the API and the two webapps).

Is this working for you with the original piece of code when the ".env" file is in the "oxe-api" folder? If yes, I wouldn't apply the modification in this repo in order to keep the same logic.

kenny-niu referenced this issue in niumalta-tech/openxeco-ncc-mita Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants