From b64edf3be98b6e99ac524d569866a8d4a9983990 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Fri, 20 Oct 2023 11:44:48 +0800 Subject: [PATCH] fix: set app servers --- app/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index 55dd41a..456f927 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -38,6 +38,12 @@ def create_app(): # http wsgi server 托管启动需指定读取环境配置 # load_dotenv(os.path.join(basedir, '.apiflaskenv')) app = APIFlask(__name__, title='Body Record API', version='1.0.0', docs_ui='redoc') + app.servers = [ + { + 'name': 'Production Server', + 'url': 'https://www.bearcatlog.com/pzx/' + } + ] load_app_config(app) register_blueprints(app) load_rpc_client(app)