mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #502] [MERGED] feat: add llamactl serve command for local development
#504
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/502
Author: @masci
Created: 5/20/2025
Status: ✅ Merged
Merged: 5/20/2025
Merged by: @masci
Base:
main← Head:massi/serve📝 Commits (10+)
862f341get deployment folder from config316304badd serve command648230brework sync method37764d0propagate skip_sync3f032capropagate skip_sync param23cd109do not shell out, run uvicorn directlybd0120abackup4c80684lazy pass deployments path to Manager41a07ecbackup2db81c5fix📊 Changes
27 files changed (+462 additions, -119 deletions)
View changed files
📝
e2e_tests/apiserver/deployments/deployment_env_local.yml(+3 -3)📝
e2e_tests/apiserver/deployments/deployment_hitl.yml(+1 -1)📝
e2e_tests/apiserver/deployments/deployment_streaming.yml(+1 -1)📝
e2e_tests/apiserver/rc/deployment.yml(+1 -1)📝
llama_deploy/apiserver/deployment.py(+43 -37)📝
llama_deploy/apiserver/deployment_config_parser.py(+6 -3)📝
llama_deploy/apiserver/routers/deployments.py(+4 -2)📝
llama_deploy/apiserver/server.py(+8 -13)📝
llama_deploy/apiserver/settings.py(+3 -3)📝
llama_deploy/apiserver/source_managers/base.py(+14 -1)📝
llama_deploy/apiserver/source_managers/git.py(+13 -2)📝
llama_deploy/apiserver/source_managers/local.py(+28 -4)📝
llama_deploy/cli/__init__.py(+4 -2)📝
llama_deploy/cli/serve.py(+49 -7)📝
llama_deploy/client/models/apiserver.py(+7 -2)📝
tests/apiserver/data/env_variables.yaml(+3 -0)📝
tests/apiserver/data/example.yaml(+0 -3)📝
tests/apiserver/data/python_dependencies.yaml(+3 -0)📝
tests/apiserver/data/service_ports.yaml(+9 -0)📝
tests/apiserver/routers/test_deployments.py(+1 -1)...and 7 more files
📄 Description
General concept:
servetollamactlto boostrap a local LlamaDeploy instance running a specific deployment.--localtollamactl serve, no code will be copied around, so changes to the local code will be picked up at the next restart (there's a plan to introduce a file watcher to make iterations even faster)apiservernow takes a boolean flag calledlocal.For more specific comments to the code, see my review.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.