Repository navigation
Deploy a local directory with --source (HOS-645) - #3
Merged
Merged
Conversation
hostim deploy <app> --source <dir> packs the directory into a deterministic tar.gz, uploads it through the new uploads API and builds it with its Dockerfile. In a git work tree it uploads the files git sees, so uncommitted changes deploy as they are. .git, node_modules and .env files are always skipped, and .dockerignore is applied. The archive is capped at 500 MiB. Templates accept deploymentSource.upload.path (relative to the template file), and the MCP server gets an upload source on create_app plus a deploy_app_source tool. api/client.gen.go is generated from the backend branch, so the generate check fails until the backend ships.
pavel1337
marked this pull request as ready for review
October 28, 2026 14:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
hostim deploy <app> --source <dir>: the CLI packs the directory, uploads it through the new uploads API and the platform builds it with its Dockerfile. Also addsdeploymentSource.upload.pathin template files, an upload source on the MCPcreate_apptool and a newdeploy_app_sourcetool..git,node_modulesand.envfiles are always skipped;.dockerignoreis applied.Depends on hostimdev/backend#115 and hostimdev/operator#48.
api/client.gen.gois generated from the backend branch, so the generate check fails until the backend is live.Tested against a local backend + Kind: create, same-tree re-deploy, changed-tree re-deploy, a prebuilt binary with a 3-line Dockerfile, a template with Postgres and a volume, MCP create and re-deploy.