update doc

This commit is contained in:
BryantHe 2023-08-10 12:43:19 +08:00
parent ad2d01f0a1
commit 2f9a37738c
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ api = APIBlueprint('api', __name__)
@api.get('/hello') @api.get('/hello')
def hello(): def hello():
result_one = f'我是您的专属接口提供服务器: {platform.node()}' result_one = f'我是您的专属接口提供服务器: {os.environ["HOSTNAME"]}'
result_two = f'我的机器参数如下' result_two = f'我的机器参数如下'
result_three = f'操作系统:{platform.system()}CPU 核数:{psutil.cpu_count()},目前 CPU 占用率: {psutil.cpu_percent()}' result_three = f'操作系统:{platform.system()}CPU 核数:{psutil.cpu_count()},目前 CPU 占用率: {psutil.cpu_percent()}'
text = """ text = """

View File

@ -14,6 +14,7 @@ services:
environment: environment:
TZ: "Asia/Shanghai" TZ: "Asia/Shanghai"
LOG_LEVEL: "DEBUG" LOG_LEVEL: "DEBUG"
HOSTNAME: $(cat /etc/hostname)
env_file: env_file:
- .apiflaskenv - .apiflaskenv
- .apiflask.env - .apiflask.env