tianyunperfect 4a56b87703 Merge remote-tracking branch 'origin/sql_redis' into sql_redis %!s(int64=3) %!d(string=hai) anos
..
config 75a9bc8be3 1 %!s(int64=3) %!d(string=hai) anos
controller ff8dcf1043 update %!s(int64=3) %!d(string=hai) anos
static e3dbf911f8 fast api init %!s(int64=3) %!d(string=hai) anos
README.md ff8dcf1043 update %!s(int64=3) %!d(string=hai) anos
debug.py e3dbf911f8 fast api init %!s(int64=3) %!d(string=hai) anos
gunicorn_config.py ff8dcf1043 update %!s(int64=3) %!d(string=hai) anos
main.py 8c9fa4a84a update %!s(int64=3) %!d(string=hai) anos
test_sql.py 08cf0da15d update %!s(int64=3) %!d(string=hai) anos

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)