We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 182109c commit cd8968bCopy full SHA for cd8968b
src/server/app.py
@@ -2,21 +2,19 @@
2
3
from flask import Flask
4
5
-app = Flask(__name__)
6
-
7
8
def create_app():
+ app = Flask(__name__)
9
app.secret_key = '1u9L#*&I3Ntc'
10
app.config['MAX_CONTENT_LENGTH'] = 500 * 1024 * 1024 # 500 Megs
11
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0
12
from api.admin_api import admin_api
13
from api.common_api import common_api
14
app.register_blueprint(admin_api)
15
app.register_blueprint(common_api)
16
+ return app
17
18
if __name__ == "__main__":
19
FLASK_PORT = os.getenv('FLASK_PORT', None)
20
21
- create_app()
+ app = create_app()
22
app.run(host='0.0.0.0', debug=True, port=FLASK_PORT)
0 commit comments