mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-17 20:24:30 +01:00
fix(forge): Make watchfiles pattern more specific to prevent unwanted (breaking) reloads
This fixes the issue of changes in artifacts triggering an application reload (which caused connection errors for in-progress requests).
This commit is contained in:
@@ -45,5 +45,13 @@ if __name__ == "__main__":
|
||||
host="localhost",
|
||||
port=int(port),
|
||||
log_level="error",
|
||||
# Reload on changes to code or .env
|
||||
reload=True,
|
||||
reload_dirs=os.path.dirname(os.path.dirname(__file__)),
|
||||
reload_excludes="*.py", # Cancel default *.py include pattern
|
||||
reload_includes=[
|
||||
f"{os.path.basename(os.path.dirname(__file__))}/**/*.py",
|
||||
".*",
|
||||
".env",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user