yym68686 commited on
Commit
a0bdc85
·
1 Parent(s): ed95244

✨ Feature: Add feature: Support automatic restart after detecting changes to api.yaml, no need to manually restart the container.

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -602,6 +602,8 @@ if __name__ == '__main__':
602
  host="0.0.0.0",
603
  port=8000,
604
  reload=True,
 
 
605
  ws="none",
606
  # log_level="warning"
607
  )
 
602
  host="0.0.0.0",
603
  port=8000,
604
  reload=True,
605
+ reload_dirs=["./"],
606
+ reload_includes=["*.py", "api.yaml"],
607
  ws="none",
608
  # log_level="warning"
609
  )