fix SERVER_NAME

This commit is contained in:
Wojciech Kwolek 2020-08-29 21:37:32 +02:00
parent 7f440df1cb
commit af74871c11
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ def create_app():
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv(
"DATABASE_URL", "sqlite:///app.db")
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SERVER_NAME'] = os.getenv('FLASK_SERVER_NAME', 'doneth.at')
from . import db
db.init_app(app)