Update getting debug env
This commit is contained in:
@@ -83,7 +83,7 @@ except PermissionError:
|
|||||||
sys.exit(77)
|
sys.exit(77)
|
||||||
|
|
||||||
# Output the config file
|
# Output the config file
|
||||||
if os.getenv("FLASK_DEBUG"):
|
if not os.getenv("FLASK_DEBUG") is None and os.getenv("FLASK_DEBUG") is True:
|
||||||
pprint.pprint(configuration_file)
|
pprint.pprint(configuration_file)
|
||||||
|
|
||||||
# We define the app module used by Flask
|
# We define the app module used by Flask
|
||||||
@@ -402,4 +402,4 @@ def camera_status():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(debug=True, use_reloader=False, host="0.0.0.0", ssl_context="adhoc")
|
app.run(use_reloader=False, host="0.0.0.0", ssl_context="adhoc")
|
||||||
|
|||||||
Reference in New Issue
Block a user