Update start_services.py to rebuild local AI services on startup

- Modified the command in start_local_ai function to include the --build flag, ensuring that local AI services are rebuilt each time they are started, which helps in applying the latest changes to the services.
This commit is contained in:
Yury Kossakovsky
2025-07-31 13:35:04 -06:00
parent d2552b4a37
commit 58995a0f4c

View File

@@ -112,7 +112,7 @@ def start_local_ai():
"""Start the local AI services (using its compose file)."""
print("Starting local AI services...")
cmd = ["docker", "compose", "-p", "localai"]
cmd.extend(["-f", "docker-compose.yml", "up", "-d"])
cmd.extend(["-f", "docker-compose.yml", "up", "-d", "--build"])
run_command(cmd)
def generate_searxng_secret_key():