Add FastAPI wechat app: config, wechat handler, run scripts, requirements, env template
This commit is contained in:
1 parent
b193b29e3a
commit
a2185104ad
8 files changed
+249
-7
No files matched your search
@@ -0,0 +1,19 @@
|
||||
"""
|
||||
本地开发启动脚本
|
||||
|
||||
使用方法:
|
||||
python run_local.py
|
||||
|
||||
或者直接用 uvicorn:
|
||||
uvicorn wechat:app --reload --host 127.0.0.1 --port 8000
|
||||
"""
|
||||
|
||||
import uvicorn
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run(
|
||||
"wechat:app",
|
||||
host="127.0.0.1",
|
||||
port=8000,
|
||||
reload=True, # 代码改动自动重启,开发用
|
||||
)
|
||||
Reference in new issue
Block a user