Create application for gunicorn

This is apparently what gunicorn looks for.
This commit is contained in:
Alan Orth 2021-03-14 22:02:51 +02:00
parent 863a540225
commit 78f58b459c
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
web: gunicorn main:app --log-file -
web: gunicorn csv_metadata_quality_web.main --log-file -

View File

@ -15,7 +15,7 @@ from flask import (
)
from werkzeug.utils import secure_filename
app = Flask(__name__)
app = application = Flask(__name__)
app.config["MAX_CONTENT_LENGTH"] = 1024 * 1024
app.config["UPLOAD_EXTENSIONS"] = [".csv"]
# the only place we can write to on Google App Engine is /tmp