From 2c4719c19a038aa9e030a84e60b4cb4d4e4165b1 Mon Sep 17 00:00:00 2001 From: joizhang Date: Sun, 11 Dec 2022 13:27:02 +0800 Subject: [PATCH] fix: set config_name to "production" --- main.py | 4 ++-- wsgi.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index bd65101..68ba4ee 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,6 @@ from app import create_app -app = create_app('development') +app = create_app("development") -if __name__ == '__main__': +if __name__ == "__main__": app.run(port=8085) diff --git a/wsgi.py b/wsgi.py index d663400..3455736 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,5 +1,4 @@ from app import create_app -from config import ProductionConfig # gunicorn -w 1 --worker-class=gevent -b 0.0.0.0:5000 --daemon wsgi:app -app = create_app(ProductionConfig) +app = create_app("production") -- Gitee