Files
RefreshToV1Api/start.sh
2023-12-14 11:00:58 +08:00

11 lines
258 B
Bash
Executable File

#!/bin/bash
# 记录当前日期和时间
NOW=$(date +"%Y-%m-%d-%H-%M")
# 启动Gunicorn
exec gunicorn -w 2 --threads 2 --bind 0.0.0.0:33333 main:app --access-logfile "./log/access-${NOW}.log" --error-logfile "./log/error-${NOW}.log"
# python3 ./main.py