A Node, Go or Rust application serves its own HTTP and replaces PHP-FPM and
nginx rather than joining them. In front of it is the platform's proxy, which
terminates TLS, routes the hostname and compresses responses — and nginx, where
its vallic.yaml names it, to serve public/ without the application: see
Nginx. There a path can go to a
service beside the application, or what it makes be cached for a week, with
rules of your own rather than in its code.
There is no bootstrap file for any of them, and that is not an omission. The PHP frameworks need one because each has its own idea of where configuration comes from; a Node, Go or Rust application reads the environment directly, which is what the platform already hands it. Shipping a file would be imposing a framework opinion on applications that do not have one.
What is worth knowing is which names to read.
What to read
PORT what to listen on — bind this, not a port of your choosing
DATABASE_URL one connection string, which is what most drivers take
REDIS_HOST the cache, when the stack runs one — with REDIS_PORT
VALLIC_PRIVATE_DIR a directory that outlives every release — where uploads go
VALLIC_LOG_DIR where log files go, if you write any, to be collected
DATABASE_URL exists for exactly this: pg.Pool({connectionString}),
sql.Open("postgres", url) and their equivalents all take a URL, and
assembling one from five parts is the glue nobody should be writing. The parts
are there too if you prefer them — see Variables.
Bind the port you are given, and bind it on all interfaces rather than
localhost: the proxy reaches your process across the container boundary, and
a server listening on 127.0.0.1 inside its own container is reachable by
nothing.
What is writable
The release is mounted read-only while the application runs: what the
build produced is what serves, and nothing can change it in place. Anything
your application writes and expects to keep goes under VALLIC_PRIVATE_DIR
(private/ at the root of the release), which is kept outside the release and
linked back into every one. There is no public counterpart — nginx is not in
front of you, so what gets served from where is your application's decision.
A directory at a path of your own choosing works the same way when declared as a mount:
mounts:
- uploads
Output to stdout and stderr is collected without any of this — see Logs.
More than one web server
Once an environment has two, consecutive requests from one visitor can land on
different machines, so anything kept in a process's memory — express-session's
default store, an in-memory cache — is not there on the next request. Keep
sessions in Valkey, at REDIS_HOST and REDIS_PORT; connect-redis and its
equivalents take exactly those two.
What starts it, and where it listens
Two keys, and both have defaults you can usually leave alone.
| Node | Go | |
|---|---|---|
| Default command | npm start |
bin/server, in the release |
Default PORT |
3000 |
8080 |
start is the command that serves. It only applies to a runtime that is its
own web server, which is why no PHP framework has one — there, PHP-FPM is the
process whatever the code says.
port overrides the default. Setting it changes the PORT your application is
given and the port the platform expects to reach, together — which is the
reason to set it there rather than hard-coding a number in your code. If you
read PORT and never set port, everything already agrees.
start: node dist/server.js
port: 4000
A binary that does not serve
Nothing requires start to listen. It is a command, and a command that
processes a queue, consumes a stream or sits in a loop is a perfectly good
one — leave health out and there is no check to fail, so the deploy
succeeds on the process staying up rather than on an HTTP answer.
What you get anyway is the environment's hostname pointed at that container, and with nothing listening it answers 502. Harmless, but it means the environment looks broken to anyone who visits it.
So a background process that belongs beside a site is better written as a worker, which is supervised the same way but has no port and no hostname attached to it:
workers:
- name: queue
command: bin/worker
Workers run your application's own image against the same release, so they need an application in the stack to run in — they are extra processes for a deployed application, not a way to deploy a process on its own.
Node
version: 1
type: nodejs
runtime:
node: '24'
services:
- postgres: '18'
build:
# npm's download cache is provided. This is the bundler's build cache,
# which is what makes the second build of an unchanged app quick.
cache:
- .next/cache
steps:
- npm ci
- npm run build
- npm prune --omit=dev
deploy:
steps:
- 'npm run migrate'
on_failure: rollback
health:
path: /healthz
A database under services is a check, not a request: it has to be the one
the environment was created with, because a commit cannot add or change a
database. Other services, such as Valkey, are started by the next deploy if the
environment lacks them. The version after each name is required, and is what
the environment runs from the next deploy — see
Service upgrade before you change one that keeps data.
node_modules is the runtime rather than a build input, so the release keeps
it — npm prune at the end of the build drops what production does not need.
No start here, on purpose. Left unsaid, the image runs npm start, so a
project with a start script in its package.json needs nothing. Add one when
your entry point is something else:
start: node dist/server.js
On Bun
The same project runs on Bun with one line: bun: under runtime, in place of
node:. The type stays nodejs, and the build runs in Bun's image, so its
steps can be Bun's:
version: 1
type: nodejs
runtime:
bun: '1.4'
build:
cache:
- node_modules
steps:
- bun install --frozen-lockfile
- bun run build
Left unsaid, start is bun run start. See Bun for what the
image carries.
Go
version: 1
type: golang
runtime:
go: '1.27'
build:
steps:
- go build -o bin/server ./cmd/server
start: bin/server
health:
path: /healthz
start is optional for Go. The image runs bin/server in the release
unless start names something else, so the start above only says what it
would run anyway. A binary built anywhere else needs one: with nothing at
bin/server, the container starts and immediately exits.
A Go build produces one binary and the release is that binary, which is why
there is nothing to prune and usually nothing to run at deploy time. If your
schema needs migrating, a deploy step running your own migration tool is the
place for it.
The language version is keyed by the language — node, go, rust —
whatever the type says: nodejs, node, next and express all mean Node,
and golang and go both mean Go.
Rust
version: 1
type: rust
runtime:
rust: '1.99'
services:
- postgres: '18'
build:
steps:
- cargo install --locked --path . --root .
deploy:
steps:
- 'bin/server migrate'
health:
path: /healthz
cargo install --root . puts your binary in the release's bin/, and the
image starts bin/server there, so a package named server needs no start.
Cargo's registry and its build directory are kept between builds for you,
outside the release, so there is nothing to list under cache. A
rust-toolchain.toml is not obeyed: the version is the one under runtime. See
Rust for what the image carries.
Cron
Nothing is scheduled for you. Neither runtime has one scheduler the platform could name, so periodic work is yours to declare, and runs in the application's container against the live release:
cron:
- name: digest
schedule: '0 * * * *'
command: node dist/jobs/digest.js
It runs on one machine only, however many web servers the environment has. For the same reason, restoring a backup clears no cache for you: the platform knows no command that would.
Health checks
Worth setting for both. With health.path set, a deploy waits for that path to
answer before it counts as done, and on_failure: rollback puts the previous
release back if it never does. The platform also watches production and tells
you when it stops answering — see Notifications — and an
endpoint that checks the database is a far better signal than one that returns
200 because the process is alive.
Next
- Variables — everything available to read
- vallic.yaml — the manifest in full
- Logs — where your output goes
Thank you. Good to know it helped.
Thanks — tell us what was missing. Open a ticket from Support in the console, and we answer on the ticket. Open the console