fix: set app servers
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-10-20 11:44:48 +08:00
parent 5112457926
commit b64edf3be9
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@ def create_app():
# http wsgi server 托管启动需指定读取环境配置 # http wsgi server 托管启动需指定读取环境配置
# load_dotenv(os.path.join(basedir, '.apiflaskenv')) # load_dotenv(os.path.join(basedir, '.apiflaskenv'))
app = APIFlask(__name__, title='Body Record API', version='1.0.0', docs_ui='redoc') 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) load_app_config(app)
register_blueprints(app) register_blueprints(app)
load_rpc_client(app) load_rpc_client(app)