forked from canonical/juju.is
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
13 lines (10 loc) · 634 Bytes
/
app.py
File metadata and controls
13 lines (10 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# This file serves as an entry point for the rock image. It is required by the PaaS app charmer.
# The flask application must be defined in this file under the variable name `app`.
# See - https://documentation.ubuntu.com/rockcraft/en/latest/reference/extensions/flask-framework/
import os
import logging
# canonicalwebteam.flask-base requires SECRET_KEY to be set, this must be done before importing the app
os.environ["SECRET_KEY"] = os.environ["FLASK_SECRET_KEY"]
# disable talisker logger, as it is not used in this application and clutters logs
logging.getLogger("talisker.context").disabled = True
from webapp.app import app