Skip to Content
Configure an app

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 problemThe setting
The app lives in a subfolder, like apps/webRoot directory, on the Source card
Deplo builds a Dockerfile or Compose file you do not wantAlways build with Railpack, in Advanced
The wrong frameworkFramework
The install, build or start step is wrongInstall command, Build command or Start command, in Advanced
A static site, served from a folder like distOutput directory, plus Single-page application for client-side routing, in Advanced
The wrong Node.js versionNode.js version, in Advanced
The wrong version of another languageA variable like RAILPACK_PYTHON_VERSION=3.13
The app gets no trafficPort

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:

TabWhat it does
Automatic (default)Builds your Dockerfile if there is one, else your Compose file, else Railpack builds the app
DockerfileBuilds your Dockerfile as it is. Dockerfile path, Build context, and Build stage for one stage of a multi-stage file, like runtime
ComposeBuilds 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:

FrameworkPortFrameworkPort
Vite, Preact, Svelte4173Astro4321
Angular4200AdonisJS3333
Gatsby9000Strapi1337
Eleventy, Vue8080Everything else3000

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

Build cache and where the build runs, on Settings -> Advanced

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 a railpack.json in the repository.
  • Detection runs on every deploy. A Framework you pick stays.

Something wrong? See Deploys and builds.

Did this page help you?

On this page