Deploy your first app

Deploy an app from any source with one wizard.

One wizard, three cards: only the middle one changes with the source. The build runs on the server you pick, never on the control plane.

Deploy it

Open the wizard

On the Overview, open Add New, then Application.

Pick where the code comes from

Five sources: GitHub, Git, Docker Image, Compose and Upload. Template opens the catalogue instead.

The New app wizard, first step: the five sources plus Template

Dragging an archive onto the Overview or the wizard opens Upload with the file and the name filled in.

Fill in that source

GitHub source step, the Connect GitHub call to action shown when no App is connected yetThe 'Use a repository URL' path

No GitHub App connected yet? Click Connect GitHub and follow GitHub's screens: Deplo creates the App for you. Choose the repositories it may see, then pick one and its branch. See GitHub.

Docker Image, Compose and Upload deploy from this card: skip to Deploy.

Set up the app

GitHub and Git only. Deplo has read the repository and filled this card in:

  • App name, from the repository.
  • The framework it found, and the container port that framework uses.
  • Build command and Deploy command, from your package.json, for your package manager. Reset empties a field and lets the builder decide.
  • Automatic deployments, on: every push to that branch deploys.

Deploy

Click Deploy. Server, URL and build method are already set. Deplo builds your Dockerfile if there is one, else your Compose file, else it detects the framework and builds with Railpack: you need neither file.

You land on the live build log. Closing the tab or reloading does not cancel anything.

What is under Advanced

Every card with a Deploy button has an Advanced drawer, labelled with the target server.

SettingWhat it is
Deploy toThe server that runs it. A single-machine install has one, already picked.
Environment variablesType them, or tick shared variables. Both reach the first build.
Build methodAutomatic (the default), Dockerfile or Compose; Always build with Railpack skips your files. Plus the Node.js version and container port.
PortDocker images only: the port routing uses, read from the image.
Build pathThe sub-folder to build from, for a monorepo.
Build onAnother server to build on. Automatic uses a build server if you have one.
GitDeploy on push or on tag, watch paths, submodules.
Extra compose flagsCompose stacks only: appended to docker compose up.

What you get

When the badge in the app header reads Online, the header shows the production URL and a Visit button. A few seconds later the Overview shows a picture of the site.

What you get once it is running: production deployment, domain, status and build time

That first URL is a free deplo.site hostname that points at your server with no DNS to set up. On a server with a public IP it gets a Let's Encrypt certificate, so it is HTTPS from the start. Add a domain for your own hostname.

The tabs you now have

Overview (production deployment, last four builds, URL), Deployments (every build, with Redeploy, Rollback and Delete), Domains, Environment, Logs, Monitoring, Backups, Activity and Settings. Console, Cron jobs and Pull requests appear once you turn them on.

Good to know

  • The slug is permanent. The display name can change; the slug in URLs and volume names cannot.
  • The first build is the slow one. Later ones reuse the server's build cache.
  • A private repository needs a connection, not a key in the URL. Connect the provider once in Settings -> Git and every app reuses it.
  • A private image needs credentials in Settings -> Registries, not in the image reference.
  • Error means the last deploy failed, not that the app is down. See App status.

Troubleshooting

SymptomWhat to check
The build fails on a missing commandYour repository has no build or start script, so the builder guessed. Set both in the app's Settings -> Deployments.
The deploy fails after the buildThe app did not start and stay up; the log says why and shows its last lines. Listen on 0.0.0.0, not 127.0.0.1. A wrong port is fixed for you.
The repository picker is emptyThe GitHub App cannot see it. Click Manage connected apps and grant it on GitHub.
pull access denied on a Docker Image appThe image is private and no registry credential matches. Add one in Settings -> Registries.

More in Deploys and builds.

Next steps

Did this page help you?

On this page