Files
KCGL/inventory-backend/run.py

12 lines
429 B
Python

# 文件路径: run.py (在项目根目录下,与 config.py 同级)
from app import create_app
app = create_app()
if __name__ == '__main__':
# debug=True 修改代码后会自动重启
print("\n====== 当前所有注册路由 ======")
for rule in app.url_map.iter_rules():
print(f"{rule} -> {rule.endpoint}")
print("==============================\n")
app.run(host='0.0.0.0', port=5000, debug=True)