Commit ffff7672 authored by berumuron's avatar berumuron
Browse files

tec: Enable overidding of SECRET_KEY and DATABASE

parent de8b6024
......@@ -14,8 +14,10 @@ locale.setlocale(locale.LC_ALL, "")
def create_app():
app = Flask(__name__, instance_relative_config=True)
database_default_path = os.path.join(app.instance_path, "db.sqlite")
app.config.from_mapping(
SECRET_KEY="a-dev-secret", DATABASE=os.path.join(app.instance_path, "db.sqlite")
SECRET_KEY=os.environ.get("REFLETS_SECRET_KEY", "a-dev-secret"),
DATABASE=os.environ.get("REFLETS_DATABASE", database_default_path),
)
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment