From 78f58b459c2425921c423ca092b0172a58846f0c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 14 Mar 2021 22:02:51 +0200 Subject: [PATCH] Create application for gunicorn This is apparently what gunicorn looks for. --- Procfile | 2 +- csv_metadata_quality_web/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index 0e5f2e5..e43fded 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn main:app --log-file - +web: gunicorn csv_metadata_quality_web.main --log-file - diff --git a/csv_metadata_quality_web/main.py b/csv_metadata_quality_web/main.py index ca1ef2d..f269ec4 100644 --- a/csv_metadata_quality_web/main.py +++ b/csv_metadata_quality_web/main.py @@ -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