tianyunperfect 4a56b87703 Merge remote-tracking branch 'origin/sql_redis' into sql_redis il y a 3 ans
..
config 75a9bc8be3 1 il y a 3 ans
controller ff8dcf1043 update il y a 3 ans
static e3dbf911f8 fast api init il y a 3 ans
README.md ff8dcf1043 update il y a 3 ans
debug.py e3dbf911f8 fast api init il y a 3 ans
gunicorn_config.py ff8dcf1043 update il y a 3 ans
main.py 8c9fa4a84a update il y a 3 ans
test_sql.py 08cf0da15d update il y a 3 ans

README.md

依赖

python3 -m pip install httptools uvloop gunicorn uvicorn

启动

# uvicorn 启动
uvicorn local:app --reload --port 5000

# 多线程启动
gunicorn api_rec:app -c gunicorn_config.py -D

关闭

kill -9 $(lsof -t -i:5000)