Docs

How builds work

From your repository to a running container.

Detection

When you create an app from a repository, CloudPloy reads a few files on the branch you picked and sets the app type, the builder and the port.

  • Laravel: artisan and laravel/framework in composer.json. Symfony: bin/console and the Symfony framework package. Other PHP: composer.json or index.php.
  • Rails: config/application.rb and the rails gem. Node: package.json (Next.js, Nuxt and Astro by their packages). Python: requirements.txt, pyproject.toml or Pipfile. Go, Rust, Java, .NET, Elixir, Deno, Bun and static sites by their project files; the table below lists every stack.
  • Anything else is created as a custom app.
  • A WordPress repository cannot be deployed this way. Use the WordPress template instead; see Templates.

Supported stacks

Every stack deploys from a plain repository, with no Dockerfile and no settings. CloudPloy creates the database the stack needs on the same server and links it, and runs its migrations before each release.

Stack (type)LanguageBuilderPortDatabaseSet up for you
Laravel laravelPHPCloudPloy PHP recipe80Postgres, offered and linkedBefore each release: php artisan migrate --force
Symfony symfonyPHPCloudPloy PHP recipe80Postgres, offered and linkedVariables: APP_SECRET. Before each release: database migrations
Rails railsRubyRailpack3000Postgres, offered and linkedVariables: RACK_ENV, RAILS_ENV, RAILS_LOG_TO_STDOUT, SECRET_KEY_BASE. Before each release: bundle exec rails db:prepare
Next.js nextjsJavaScriptRailpack3000NoneNothing extra
Nuxt nuxtjsJavaScriptRailpack3000NoneNothing extra
Astro astroJavaScriptRailpack4321NoneNothing extra
Deno denoTypeScriptRailpack8000NoneNothing extra
Bun bunTypeScriptRailpack3000NoneNothing extra
Node.js nodejsJavaScriptRailpack3000NoneExpress, Fastify, Koa, NestJS and other servers: npm start must listen on PORT.
PHP phpPHPCloudPloy PHP recipe80NoneThe web root is public/ when the repository has public/index.php, else the repository root.
Django djangoPythonRailpack8000Postgres, offered and linkedVariables: DJANGO_SECRET_KEY, SECRET_KEY. Migrations run when the app starts. Your settings must read SECRET_KEY and DATABASE_URL and allow the app's host in ALLOWED_HOSTS.
FastAPI fastapiPythonRailpack8000NoneNothing extra
Flask flaskPythonRailpack8000NoneNothing extra
Python pythonPythonRailpack8000NoneNothing extra
Go goGoRailpack8080NoneNothing extra
Rust rustRustRailpack8080NoneNothing extra
Ruby rubyRubyRailpack8080NoneVariables: APP_ENV, RACK_ENV. Sinatra, Roda, Hanami and other Rack apps start from config.ru.
Spring Boot springJavaRailpack8080NoneNothing extra
Java javaJavaRailpack8080NoneNothing extra
ASP.NET Core dotnetC#Railpack8080NoneDetected by Program.cs or global.json at the repository root.
Phoenix phoenixElixirRailpack4000Postgres, offered and linkedVariables: PHX_SERVER, SECRET_KEY_BASE. Before each release: database migrations
Elixir elixirElixirRailpack4000NoneNothing extra
Static site staticHTMLRailpack8080NoneNothing extra
Custom customAnyRailpack8080NoneAnything else: the repository's Dockerfile, or what Railpack finds.

Which builder runs

For an app created from a repository, the first of these that fits builds it.

  1. 1

    Your Dockerfile

    An app with a Dockerfile at the root of the repository, or of its root directory (see Build settings), is built with it. This includes PHP apps. PHP apps created before 30 November 2026 keep CloudPloy’s PHP recipe.
  2. 2

    PHP apps: CloudPloy’s PHP recipe

    Laravel, Symfony and other PHP apps without a Dockerfile are built with CloudPloy’s own PHP image.
  3. 3

    Auto-detect: Railpack

    Without a Dockerfile, CloudPloy builds the app with Railpack, which finds the language and start command by itself.
  4. 4

    Fallback: Nixpacks

    When Railpack cannot detect the app, the build uses Nixpacks instead. Apps created before Railpack was added keep building with Nixpacks.

Build settings

For when detection guesses wrong. Set them under Build settings (optional) when you create the app, or on the app's Overview under Build settings. Empty fields keep the detected behaviour; saved settings apply on the next deploy. In the API they are the settings object of POST /v1/apps and PUT /v1/apps/{uuid}/settings.

  • Root directory, for a monorepo: the folder CloudPloy detects and builds from, such as apps/web. Every builder reads it.
  • Build command replaces the detected build step. Railpack and Nixpacks only; a Dockerfile, yours or CloudPloy's PHP recipe, builds as written.
  • Start command runs with sh -c instead of the image's entrypoint and command, for every builder.
  • Port: the port the app listens on, for every builder. Empty uses the detected one (below).
  • Health check path, such as /healthz: a new version gets traffic only once this path answers 2xx or 3xx; otherwise the deploy fails and the previous version keeps running. The image needs curl, bash or nc.
  • Volume path, such as /data: a folder kept across deploys, for uploads and similar files. Deleting the app deletes it.
  • Worker command: a second process from the same image, with the same variables and volume. It gets no traffic.
  • Cron entries, one per line: five schedule fields in UTC or @hourly, @daily, @weekly, @monthly, then the command. Each run is a one-off container of the app's image with its variables and volume, skipped while the app is stopped.
  • Template apps and apps on CloudPloy Cloud do not take build settings.

See which builder ran

Open the app's Deployments tab and click a deployment. The build log names the builder, for example Builder: the repository's Dockerfile. or Builder: CloudPloy's PHP recipe.

The port your app listens on

  • Each stack’s port is in the table above. A custom app, or one with only a Dockerfile: 8080. If detection could not read the repository at all, the port is 80.
  • Railpack and Nixpacks builds get the port in the PORT variable. Make your app listen on PORT.
  • With your own Dockerfile, make the container listen on the port above, or set Port under Build settings.