Build settings
Fix a build that picks the wrong thing or fails, with the build method, its commands and the port.
Deplo reads your code and builds it on its own. When it gets something wrong, change it on the Build card, in the app's Settings -> Deployments. A Docker image or a pasted Compose app has none.
Change a build setting
Find the setting
| The problem | The setting |
|---|---|
The app lives in a subfolder, like apps/web | Root directory, on the Source card |
Deplo builds a Dockerfile or Compose file you do not want | Always build with Railpack, in Advanced |
| The wrong framework | Framework |
| The install, build or start step is wrong | Install command, Build command or Start command, in Advanced |
A static site, served from a folder like dist | Output directory, plus Single-page application for client-side routing, in Advanced |
| The wrong Node.js version | Node.js version, in Advanced |
| The wrong version of another language | A variable like RAILPACK_PYTHON_VERSION=3.13 |
| The app gets no traffic | Port |
A typed value wins over detection. Empty goes back to detection.
Save, then redeploy
Save in the bar at the bottom. Saving does not deploy: Redeploy applies it.
Build methods
Three tabs at the top of the Build card:
| Tab | What it does |
|---|---|
| Automatic (default) | Builds your Dockerfile if there is one, else your Compose file, else Railpack builds the app |
| Dockerfile | Builds your Dockerfile as it is. Dockerfile path, Build context, and Build stage for one stage of a multi-stage file, like runtime |
| Compose | Builds and starts the Compose file of your repository. See Docker Compose |
The card says what ran last, like Last deploy: Railpack.
The port
Deplo sends traffic to one port per app. The framework sets it:
| Framework | Port | Framework | Port | |
|---|---|---|---|---|
| Vite, Preact, Svelte | 4173 | Astro | 4321 | |
| Angular | 4200 | AdonisJS | 3333 | |
| Gatsby | 9000 | Strapi | 1337 | |
| Eleventy, Vue | 8080 | Everything else | 3000 |
If the app listens on another port, like 8080, the deploy finds it, sends the traffic there and
saves it as Port. An app that listens only on 127.0.0.1 fails: make it listen on 0.0.0.0.
Build cache
Settings -> Advanced, the Build & triggers card. Build cache is on by default, so only the first build is slow.
- Clear cache makes the next deploy build from scratch.
- Build on builds on another server. See Build servers.
Deployment screenshots
After each deploy, Deplo takes a picture of the site for the Production Deployment card. If a cookie banner covers it, hover the picture and click Retake screenshot.
To turn it off, use Settings -> Advanced -> Deployment screenshots. That also deletes the saved ones.
Good to know
- Railpack reads
RAILPACK_*variables and arailpack.jsonin the repository. - Detection runs on every deploy. A Framework you pick stays.
Something wrong? See Deploys and builds.
Did this page help you?