mirror of
https://github.com/ilri/csv-metadata-quality-web.git
synced 2024-11-26 08:28:19 +01:00
Create application for gunicorn
This is apparently what gunicorn looks for.
This commit is contained in:
parent
863a540225
commit
78f58b459c
2
Procfile
2
Procfile
@ -1 +1 @@
|
|||||||
web: gunicorn main:app --log-file -
|
web: gunicorn csv_metadata_quality_web.main --log-file -
|
||||||
|
@ -15,7 +15,7 @@ from flask import (
|
|||||||
)
|
)
|
||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = application = Flask(__name__)
|
||||||
app.config["MAX_CONTENT_LENGTH"] = 1024 * 1024
|
app.config["MAX_CONTENT_LENGTH"] = 1024 * 1024
|
||||||
app.config["UPLOAD_EXTENSIONS"] = [".csv"]
|
app.config["UPLOAD_EXTENSIONS"] = [".csv"]
|
||||||
# the only place we can write to on Google App Engine is /tmp
|
# the only place we can write to on Google App Engine is /tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user