-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_debug.py
29 lines (25 loc) · 1020 Bytes
/
run_debug.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
For running the app with an external debugger (IDE) attached.
This only partially enables Flask development mode.
For running the app with a fully enabled Flask development mode using the Flask CLI, see README.md.
"""
from __future__ import unicode_literals
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from future import standard_library
import os
import accountability_api
standard_library.install_aliases()
if __name__ == "__main__":
env = os.environ.get("FLASK_ENV", "development")
app = accountability_api.create_app(f"accountability_api.settings.{env.capitalize()}Config")
app.run(
host="0.0.0.0",
port=8875,
# The following args are present for improved external debugger support.
# See Flask documentation documentation (https://flask.palletsprojects.com/en/2.0.x/debugging/?highlight=debugger#external-debuggers)
debug=True,
use_debugger=False,
use_reloader=False
)