Docs · Start
What homeport detects
homeport reads the files your repo already has, picks a toolchain from them, and either builds a Linux binary to run, a bundle of your app with its runtime, or a folder of files to serve. Nothing in your repo is run to decide.
The order it checks in
Detection looks at the app’s folder (the repo root, unless you chose a folder inside it) and takes the first match:
| If the folder has | It is built as | Install | Build |
|---|---|---|---|
build.image | Your own build image (from homeport.yaml) | — | your build.command |
composer.json, or an index.php | PHP on FrankenPHP (Laravel included) | composer install --no-dev --optimize-autoloader | A bundle of your app, with FrankenPHP to run it |
go.mod | Go | — | CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o server . |
Cargo.toml (with a binary) + Cargo.lock | Rust (Axum, Actix Web, Rocket, Loco…) | — | cargo build --release --locked: a bundle of your binary and your app’s files |
pyproject.toml + uv.lock, or requirements.txt | Python (Django, FastAPI, Flask) | uv, exactly what the lockfile says | A bundle of your app with its own Python |
package.json + a lockfile | Node.js or Bun | Your lockfile’s package manager, frozen to the lockfile | your build script |
index.html | A static site, served as it is | — | Nothing |
You see this plan before anything builds. If none of these files is there, the build stops and asks you to set the build and output in the app’s build settings.
Go
The Go version comes from your go.mod: its toolchain line if it has one, otherwise its go line. The build runs in the official golang image for that version and writes a static binary called server, with CGO off, paths trimmed and symbols stripped. Your app runs that binary.
Laravel and PHP, on FrankenPHP
A folder with a composer.json, or an index.php at its top or in public/, is a PHP app: Laravel, or plain PHP with no framework. With a composer.json, its composer.lock is required, so the build installs exactly what you tested. The build:
- checks your platform requirements against the lockfile (
composer check-platform-reqs --no-dev --lock), - installs your dependencies without dev packages,
- builds your front-end assets with Bun when
package.jsonhas abuildscript (bun installthenbun run build), - ships your app as a bundle with homeport’s FrankenPHP, PHP 8.5 with the standard extensions. Nothing is compiled per app.
FrankenPHP serves the app’s public/ folder, or the app’s own folder when its index.php is at the top, on homeport’s port. composer.json, composer.lock, auth.json, vendor/, dotfiles such as .env, homeport.yaml and php.ini are never served from it.
Artisan runs through FrankenPHP’s php-cli, so a release command or a worker is arguments to it, not php …. Set them in the environment’s Settings → Build settings, or, if you prefer config in the repo, in an optional homeport.yaml:
release: php-cli artisan migrate --force
processes:
worker: php-cli artisan queue:workOctane, Inertia SSR and Reverb
- Octane: an app that requires
laravel/octaneis served through Octane, in FrankenPHP’s worker mode. Turn it off in the build settings if you’d rather not. - Inertia server-side rendering: an app that requires
inertiajs/inertia-laraveland has an SSR build (abuild:ssrscript, or anssrentry in its Vite config) builds its SSR bundle too. The renderer starts, sleeps and wakes beside your app, and PHP reaches it at Inertia’s default address. - Reverb: an app that requires
laravel/reverbruns Reverb as a process of its own, and its WebSocket requests reach it on your app’s own address. It runs at the app’s memory, on every plan, and sleeps while no client is connected. - The scheduler: your schedule is read at each deploy and offered as cron jobs, so the app needn’t stay awake for it.
- Queues: an app with a class that
implements ShouldQueue, or thejobstable’s migration, has its database queue worked on demand, on every plan: a drain runs when there may be work and exits once the queue is empty. With thehomeport/laravelpackage, queueing a job starts a drain. Choose how it runs in Settings → Queue. A worker process of your own (paid plans) works it instead.
Rust: Axum, Actix Web, Rocket and Loco
A crate with a binary (src/main.rs or a [[bin]]) and its committed Cargo.lock is a Rust app. It’s built with cargo build --release --locked in the official Rust image, and ships as a bundle: your binary, beside your app’s own files (static/, templates/, config/; not target/ or .git), run from that folder. A top-level bin/ folder fails the build: rename it. A Cargo.toml without a binary is a library, and a workspace’s root is not an app: set the root directory to the crate that is.
- Which binary:
default-runin[package]; else the only binary; else, for Loco,<package>-cli; else the one named like the package. With several and none of them that, setdefault-run. - Workspaces: set the root directory to the member that’s the app (
crates/api). Its workspace’sCargo.lockand toolchain file are used. - Caching: the registry and your compiled dependencies are kept between builds, so a build that changed only your code compiles only your own crates. Past 2 GiB the compiled dependencies are dropped and rebuilt.
- Listening: like a Go app, it must listen on
$PORT, on0.0.0.0(also in$HOST). The start command can pass them:run: --port $PORT.
| Framework | Recognised by | Start command | Release command |
|---|---|---|---|
| Axum, Actix Web, Poem, Salvo, Warp | axum, actix-web, poem, salvo or warp in [dependencies] | Your binary, as it is | None |
| Loco | loco-rs | start --environment production --binding $HOST --port $PORT | db migrate --environment production, with its migration crate |
| Rocket | rocket | Your binary, which must read PORT itself | None |
Rocket listens on ROCKET_ADDRESS and ROCKET_PORT (127.0.0.1:8000), not on PORT: set Rocket’s port from PORT and its address to 0.0.0.0. The build warns about it.
Which Rust
A rust-toolchain.toml (or rust-toolchain) in the app’s folder or above it: stable or no channel is homeport’s pinned Rust, 1.99.1, and 1.x or 1.x.y is that version’s image, 1.67 and newer. nightly and beta build, but are downloaded in every build. Without a toolchain file, a rust-version newer than the pinned Rust (the crate’s, or its workspace’s) picks that version.
Python: Django, FastAPI and Flask
A folder with a pyproject.toml and uv.lock, or a requirements.txt, is a Python app. A package.json beside it (for your CSS) doesn’t change that when Django, FastAPI or Flask is recognised. There’s no Dockerfile and no virtualenv: your app ships with its own Python, which is what runs it. The build:
- fetches homeport’s pinned CPython and uv, each checked against its checksum, and keeps them for your next build,
- installs exactly what
uv.locksays (or yourrequirements.txt). Auv.lockthat yourpyproject.tomlhas moved past fails the build: runuv lockand commit it, - builds your front-end assets with Bun when
package.jsonhas abuildscript (bun installthenbun run build), as for Laravel.node_modulesnever ships, - for Django, runs
manage.py collectstatic, after the front-end build, so it collects what that built, - compiles every file ahead of time, since your app’s folder is read-only once it runs.
| Framework | Recognised by | Start command | Release command |
|---|---|---|---|
| Django | manage.py and django | -m gunicorn --bind 0.0.0.0:$PORT -c .homeport/gunicorn.conf.py mysite.wsgi | manage.py migrate --noinput |
| FastAPI | app = FastAPI( in main.py, app.py, app/main.py… | -m uvicorn --host 0.0.0.0 --port $PORT main:app | -m alembic upgrade head, with an alembic.ini |
| Flask | app = Flask( in the same files, or wsgi.py | -m gunicorn --bind 0.0.0.0:$PORT -c .homeport/gunicorn.conf.py app:app | The same, for Alembic (Flask-Migrate) |
Commands are arguments to your app’s Python, so a worker is -m celery -A mysite worker, not celery …. If your dependencies have no gunicorn or uvicorn, the build adds a pinned one and says so. gunicorn runs 2 workers of 4 threads each, from a config file homeport adds. Your variables win: WEB_CONCURRENCY sets the workers, and GUNICORN_CMD_ARGS (--threads 8) overrides either. Your own gunicorn.conf.py or start command replaces homeport’s config.
Which Python
The Python version in the build settings, if you chose one; else your .python-version, else runtime.txt, else the newest that requires-python allows, preferring 3.14. homeport runs 3.12, 3.13, 3.14 and 3.15, each at a pinned patch release.
Node.js and Bun
A package.json with a lockfile is a JavaScript app. The lockfile picks the package manager: package-lock.json for npm, pnpm-lock.yaml for pnpm, yarn.lock for Yarn, bun.lock for Bun. With more than one, packageManager in package.json decides. Dependencies are installed exactly as the lockfile says, then your build script runs.
Node or Bun
The app runs on Node.js unless something says Bun. In order, homeport reads:
- the runtime set in the app’s build settings or homeport.yaml;
enginesin package.json, namingnodeorbun;- a
.bun-version,.nvmrcor.node-versionfile; - what your start script runs;
- a framework that runs on one only: Elysia and SvelteKit’s adapter-bun run on Bun.
Node.js 22, 24 and 26 are available, and an app that names none gets the current LTS, 24. Bun is 1.4. Each is the official release, checked against its published checksum.
What runs
The app starts the way its start script starts it, read without a shell. For these frameworks homeport also knows what to ship:
| Framework | What ships |
|---|---|
| Next.js | Its standalone output, built standalone even when next.config doesn’t ask for it |
| Nuxt | Its .output folder |
SvelteKit with @sveltejs/adapter-bun | Your app with its production dependencies, on Bun, started from build/index.js |
SvelteKit with @sveltejs/adapter-node | Your app with its production dependencies, started from build/index.js |
| TanStack Start with Nitro | Nitro’s .output folder |
Astro with @astrojs/node | Its dist folder |
| React Router, Remix | Your app with its production dependencies |
| NestJS | Your app, started from dist/main.js |
| Express, Hono, Fastify, Koa, Elysia | Your app with its production dependencies |
If your build compiles your server into a binary, that binary is what runs, and no runtime or node_modules ships with it. That is bun build --compile in your build, a compile of Nitro’s server output from Nuxt (--preset bun) or TanStack Start (nitro({ preset: 'bun' })), or a build adapter that compiles: @sveltejs/adapter-bun with buildOptions.compile for SvelteKit, and next-bun-compile for Next.js. A compiled Nitro server must inline its assets: set serveStatic: 'inline' in Nitro’s options.
SvelteKit: the adapter your config imports is the one used, read the same from vite.config (SvelteKit 3) or svelte.config.js. An app on adapter-bun always runs on Bun. svelte-smol is not supported: use adapter-bun.
TanStack Start needs Nitro to make a server: install nitro and add nitro() from nitro/vite to your Vite plugins. It runs on Node, or on Bun with nitro({ preset: 'bun' }). Without Nitro, the build is refused unless your start script serves it.
Static sites
A JavaScript project is treated as a static site when it uses a static builder and no server framework:
| Your project uses | The folder served |
|---|---|
@sveltejs/adapter-static | build |
Astro, without output: 'server' or an adapter | dist |
| Vite (not SvelteKit) | dist |
Next.js with output: 'export' | out |
A plain index.html, no build | the app’s folder |
A dependency on a server framework (for example next, nuxt, hono, express, elysia, fastify, @sveltejs/adapter-node or @astrojs/node) makes it a server. With no server framework and no start script, homeport looks for a site in build, dist and out, in that order, and serves the first one that has an index.html.
A site with a 200.html, or with exactly one HTML file, is served as a single-page app: any path that is not a file gets the shell.
To serve a Vite build and an API as one app, see A Vite front end and an API in one app.
rsc-kit
A project that depends on @rsc-kit/core is built with Bun, and then homeport reads the marker rsc-kit writes at the end of its build, .output/rsc-kit.json, to learn what it made:
{ "output": "export", "dir": "dist" } // a static site
{ "output": "server", "compile": "compile", "binary": "dist/app" } // a serverexport: the folder indiris served as a static site.server: homeport runs the package.json script named incompile, then runs the binary atbinary.
The marker needs rsc-kit 0.29.6 or newer. Setting static, build.command or build.artifact in homeport.yaml (or the build settings in the dashboard) skips it.
Old files after a deploy
A tab opened before a deploy still asks for the old release’s fingerprinted files, like /_app/immutable/start.Ab12.js. homeport keeps a copy of them with each release. For a day after the next deploy, a request the new release answers with a 404 is answered from that copy instead, so the open tab keeps working.
| Framework | Folder | URL path |
|---|---|---|
| SvelteKit, adapter-node or adapter-bun | <out>/client/<appDir>/immutable | <paths.base>/<appDir>/immutable |
| Astro, @astrojs/node | dist/client/_astro | /_astro |
| React Router 7, Remix 2 (Vite) | build/client/assets | /assets |
| Remix, classic compiler | public/build | /build |
| Next.js | .next/static | /_next/static |
| Nuxt | .output/public/_nuxt | /_nuxt |
| TanStack Start, rsc-kit | .output/public/assets | /assets |
| Laravel, laravel-vite-plugin | public/build/assets | /build/assets |
| Django | STATIC_ROOT | STATIC_URL |
Each is read from the framework’s own config where it can be changed (SvelteKit’s appDir and paths.base, Laravel’s buildDirectory), and a folder the build didn’t make is skipped. A static site needs none of this: its files are served as they are.
An app whose framework has no such folder (Express, Hono, Go, Flask), or that builds its files somewhere else, names its own in homeport.yaml or in the build settings. Old files are served only when your app answers 404: a catch-all route that answers every path with 200 answers an old file’s request itself.
When the guess is wrong
Change the build in the app’s build settings in the dashboard (the app’s folder, whether it is a binary or a static site, and its install, build, output and run commands), or commit a homeport.yaml. The dashboard’s settings win over the file.
What your app must do
- Listen on the port in
$PORT, on0.0.0.0(also in$HOST). The port is assigned, so do not hard-code one. - Answer
GET /with a status below 400 within 30 seconds of starting. A redirect counts. If it does not, the deploy is rolled back to the previous release. Another path can be checked instead: set the health check path. - Keep anything that must last in a database or in storage. The release folder your binary runs from is read-only, and the folder in
$STATE_DIRis scratch space that does not last past a deploy or a move.