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

Does not accept FLASK_ENV variable to initialize application with specific environment #87

Open
lildonpancho opened this issue Oct 26, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@lildonpancho
Copy link
Contributor

The app breaks when setting the FLASK_ENV variable and changing the necessary code to accept that variable. It seems like it could be a circular dependency issue.

The desired way to set which config it is using is by setting the FLASK_ENV variable and then running flask run. The environments currently available are development, testing, and production. Right now, DevelopmentConfig is hardcoded in the __init__.py in the app directory.

@lildonpancho lildonpancho added the bug Something isn't working label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant