> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pxxl.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Builds and deployments

> How Pxxl builds your code, the two project types, and what happens when a deploy fails.

## Two project types

| Type | What it is | Needs |
| - | - | - |
| **Web Service** | A process that keeps running and answers HTTP requests. APIs, SSR apps, Next.js, Django, Go. | A start command. Listen on `$PORT` and bind to `0.0.0.0`. |
| **Static App** | Files only. Vite, React, Vue, Astro builds, plain HTML. | An output folder with `index.html`. No server. |

Pxxl picks the type from your code. A server framework or a start command means Web Service. HTML or a static framework means Static App. Docker and WordPress sources are always Web Services.

## Build settings

Pxxl detects these and shows them before you deploy. Change any of them in the form or in [`pxxl.toml`](https://docs.pxxl.app/reference/pxxl-toml).

![Pxxl build configuration screen with project setup, services, Node version and environment variables.](https://mintcdn.com/pxxl/BmMwkLenE04VSQYP/images/deploy-build-configuration.jpeg?fit=max\&auto=format\&n=BmMwkLenE04VSQYP\&q=85\&s=87aaee51ca532c0b4ddfc8b1f6a05ce2)

| Setting | Example |
| - | - |
| Base directory | `apps/web` |
| Package manager | `pnpm` |
| Runtime version | Node `22` |
| Install command | `pnpm install --frozen-lockfile` |
| Build command | `pnpm build` |
| Start command | `node dist/server.js` |
| Output directory | `dist` |
| Port | `3000` |
| Region | `eu-central` |

## What happens on deploy

**1. Source**

Pxxl clones the commit, or receives your upload or image.

**2. Build**

It runs the install and build commands in an isolated builder and streams the log.

**3. Publish**

A Static App is uploaded to the edge as a new release. A Web Service starts in a container.

**4. Health check**

A Web Service must answer on its port before it gets traffic.

**5. Live**

Traffic moves to the new version. The old one keeps running until then, so there's no downtime.

## When a deploy fails

Your current version stays online. Open the failed deployment and read the first error in the log. The usual causes:

* A missing environment variable.
* The wrong base directory.
* The wrong package manager (check your lockfile).
* A build command that fails.
* A start command that exits right away.
* The app listens on a different port, or on `127.0.0.1` instead of `0.0.0.0`.

Fix it, push again or choose **Redeploy**. More fixes: [Deployment troubleshooting](https://docs.pxxl.app/troubleshooting/deployments.md).

## Ignore files

Add a `.pxxlignore` file to keep files out of CLI uploads. It works like `.gitignore`. See [.pxxlignore](https://docs.pxxl.app/reference/pxxl-toml.md#pxxlignore).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.