Refactor for heroku...

This commit is contained in:
Phillip Kühne 2022-07-15 02:22:36 +02:00
parent f421423636
commit 589e50120b
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA
3 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import os
import json import json
from flask_basicauth import BasicAuth from flask_basicauth import BasicAuth
from helpers import nocache from helpers import nocache
app = Flask("backend", static_url_path='/static') app = Flask(__name__, static_url_path='/static')
basic_auth = BasicAuth(app) basic_auth = BasicAuth(app)
accept_entries = False accept_entries = False

4
backend/wsgi.py Normal file
View File

@ -0,0 +1,4 @@
from app import app
if __name__ == "__main__":
app.run()