✨ Feature: Add feature: Support automatic restart after detecting changes to api.yaml, no need to manually restart the container.
Browse files
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 |
)
|