THIS APP IS IN DEBUG MODE. YOU SHOULD NOT SEE THIS IN PRODUCTION.
chppppp opened this issue · 3 comments
In my config.env I have the line FLASK_CONFIG="production" but I still get the message that I am in Debug mode. I have tried exporting the env value but still no luck.
Sorry if this is a noob question :) Thank you very much!
This error can be ignored. what happens is when we initially load in the scripts necessary to start the app, it assumes the default config at first (development) before it reads in the actual config mode. Kinda an unintentional consequence of having the flask manager handle launching the app. If you have an idea about how to fix it (or make the error message better), let me know.
Thank you!! I had thought this so I had closed my issue, but then I started thinking more and re-opened.
I will close this issue and if I come up with anything clever I will issue a PR. Thank you!
Am I understanding this correctly @abhisuri97? No matter how the app is configured the warning is always shown? If so, this seems like a bug.