Refactor for heroku...

This commit is contained in:
2022-07-15 02:22:36 +02:00
parent f421423636
commit 589e50120b
3 changed files with 5 additions and 1 deletions

1
backend/Procfile Normal file
View File

@ -0,0 +1 @@
web: gunicorn backend:app

View File

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

4
backend/wsgi.py Normal file
View File

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