# Sevalla docs > Sevalla is the platform for deploying applications, databases and static sites, without managing the infrastructure underneath. > ## Agent Instructions > These are the docs for Sevalla, a platform for deploying applications, databases, static sites, object storage and load balancers. The dashboard is at https://app.sevalla.com. > Bold text in steps is an exact dashboard label. > To act on a Sevalla account, prefer the Sevalla MCP server (https://mcp.sevalla.com/mcp, see https://docs.sevalla.com/ai-agents/overview.md), then the Sevalla CLI (https://docs.sevalla.com/developer-tools/cli.md), then the REST API (https://api-docs.sevalla.com, OpenAPI spec at https://api.sevalla.com/v3/openapi.json). > Every page index is at https://docs.sevalla.com/llms.txt. # Delete your account Source: https://docs.sevalla.com/account/delete Delete your Sevalla user account together with your last company, or ask support to delete it, and see what deleting a company instead of your account means. Deleting your account removes your Sevalla user account: your sign-in, name, email address, password, two-factor settings and Git connections. Your account is separate from your companies. A company holds the services, subscription and billing; your account is how you sign in, and it can belong to several companies. To stop paying for Sevalla and remove your services, delete the company instead: see [Delete a company](/company/overview#delete-a-company). Deleting your account doesn't cancel any company's subscription. ## Delete your account with your last company If you own exactly one company and belong to no other, you can delete your account in the same step as the company. **1. Prepare the company** Delete every project and service in the company. See [Before you delete a company](/company/overview#before-you-delete-a-company). **2. Start deleting the company** In the sidebar, under **Company**, click **Billing**. In **Danger zone**, click **Delete company**, pick a reason, then click **Continue**. **3. Include your account** Select **Also delete my user account**. Type the company name, then click **Delete company**. Sevalla deletes the company first, then your account, and signs you out. > [!WARNING] > > Deleting your account is permanent and can't be undone. **Also delete my user account** appears only when the company you're deleting is your only company. Sevalla keeps your account if you still belong to another company, or if the company is shared with MyKinsta (there, deleting from Sevalla only cancels the Sevalla subscription). ## Delete your account in other cases The dashboard has no separate button to delete your account. If you belong to other companies, or you aren't the owner of your company: * **To leave a company**, ask its owner or an admin to [remove you](/company/users-and-roles#remove-a-user-from-the-company). * **To hand over a company you own**, [transfer ownership](/company/users-and-roles#transfer-ownership) to a company admin. * **To delete the account itself**, contact our support team from the email address on your account. See [Get help](/support/get-help). # My account Source: https://docs.sevalla.com/account/overview Update your name, email address and password, connect GitHub, GitLab or Bitbucket for sign-in and repository access, and choose your email notifications and theme. My account is the page where you manage your own Sevalla user account: your name, email address, password, two-factor authentication, Git connections and email notifications. These settings belong to you, not to a company, so they apply in every company you're part of. To open it, click your name at the bottom of the sidebar, then click **My account**. The page has three cards: | Card | Settings | | - | - | | **Account settings** | **Name** (first name, last name, avatar) and **Email** | | **Authentication** | **Password**, **Authenticator app**, and **Git login & repository access** | | **Notifications** | **Failed deployment** and **Marketing emails** | ## Update your name **1. Open the name sheet** On **My account**, in the **Name** row, click **Update name**. **2. Enter your name** Enter your **First name** and **Last name** (both are required), then click **Update name**. Your avatar comes from [Gravatar](https://gravatar.com/), based on your email address. To change it, click **Update on Gravatar** in the **Name** row. ## Update your email address Changing your email address takes your Sevalla password and a code sent to the new address. **1. Open the email sheet** On **My account**, in the **Email** row, click **Update email**. **2. Request a code** Enter the **New email** and your **Sevalla password**, then click **Request verification code**. Sevalla emails a 6-digit code to the new address. **3. Enter the code** Under **Verification**, enter the 6-digit code, then click **Update email**. The code expires after 10 minutes. To get a new one, click **Resend code**. Disposable email addresses and addresses that another account already uses are rejected. Once the new address is verified, Sevalla signs you out of every session. Sign in again with the new address. The **Email** row shows **Verified** next to your address. If your company uses [single sign-on](/company/single-sign-on/overview), keep an address on the company's SSO domain, or you can't sign in with SSO. ## Update your password **1. Open the password sheet** On **My account**, in the **Password** row, click **Update password**. **2. Enter the old and new password** Enter your **Old password** and a **New password**, then click **Update password**. A password needs at least 8 characters, with a lowercase letter, a capital letter and a number, and can be up to 150 characters. Changing it signs you out of every session, this one included; sign in again with the new password. It doesn't change your two-factor settings. If you signed up with a Git provider or through single sign-on, you may not have a password yet. Create one with **Forgot your password?** on the sign-in page; see [Reset your password](/account/sign-in#reset-your-password). ## Set up two-factor authentication Sevalla asks for a second factor every time you sign in with your email and password, unless you've trusted the device. Codes come by email unless you turn on an authenticator app in the **Authenticator app** row. See [Use an authenticator app](/account/sign-in#use-an-authenticator-app). ## Connect Git sign-in The **Git login & repository access** row has a card for GitHub, GitLab and Bitbucket. Each card has two separate connections: | Connection | What it does | | - | - | | **Login** | Lets you sign in to Sevalla with that Git provider's account. | | **Repository access** | Lets Sevalla read your repositories, so you can deploy applications and static sites from them. See [Git providers](/git/overview). | To turn either one on, click **Enable** next to it. A window opens at the Git provider; sign in there and approve Sevalla. The line then shows **Enabled**. ![The Git login & repository access row with GitHub, GitLab and Bitbucket cards, each with a Login and a Repository access line and Enable or Revoke buttons](https://assets.sevalla.com/screenshots/light/account-git-login-enable.png) ## Revoke Git sign-in or repository access **1. Choose the connection** On **My account**, in the **Git login & repository access** row, click **Revoke** next to the provider's **Login** or **Repository access**. **2. Confirm** In the dialog, click **Revoke**. * **Revoking login** means you can't sign in with that Git provider until you enable it again. Sign in with your email and password instead. * **Revoking repository access** means Sevalla can't read your repositories at that provider, so applications that deploy from them stop deploying until you enable access again. The Git provider can still list Sevalla as an authorized app. When it does, Sevalla opens the provider's settings page in a new tab so you can remove it there too. ## Choose email notifications The **Notifications** card has two switches, both for the address on your account: | Switch | Sends | Default | | - | - | - | | **Failed deployment** | An email when a deployment fails | On | | **Marketing emails** | Announcements and tips | Depends on your choice at sign-up | Changes apply right away. ## Choose a theme Click your name at the bottom of the sidebar. Next to **Theme**, pick **Light**, **Dark** or **System** (follows your device's setting). The theme is saved in your browser, so each browser keeps its own choice. To delete your user account, see [Delete your account](/account/delete). # Sign in and two-factor authentication Source: https://docs.sevalla.com/account/sign-in Sign in to Sevalla with email and password, a Git provider or SSO, reset a forgotten password, and use email codes or an authenticator app for two-factor authentication. You sign in to Sevalla at [app.sevalla.com](https://app.sevalla.com/login) with your email address and password, with a GitHub, GitLab or Bitbucket account, or through your company's single sign-on (SSO). Signing in with your email and password takes a second step: a 6-digit code sent by email or generated by an authenticator app. ## Ways to sign in | Method | How | Two-factor code | | - | - | - | | Email and password | Enter your **Email** and **Password**, then click **Sign in**. | By email, or from your authenticator app, unless you've trusted the device | | Git provider | Click **GitHub**, **GitLab** or **Bitbucket**. Works once you've turned on **Login** for that provider. | No Sevalla code: the Git provider signs you in | | Single sign-on | Click **Sign in with SSO** and enter your work email. Works when your company has set up SSO. | No Sevalla code: your identity provider signs you in | To create an account, click **Sign up** on the sign-in page, or accept an [invitation](/company/users-and-roles#how-invited-people-join) to a company. To sign in the Sevalla CLI, see [Sevalla CLI](/developer-tools/cli). ![The Sign in to Sevalla page with GitHub, GitLab and Bitbucket buttons, email and password fields, and a Sign in with SSO button](https://assets.sevalla.com/screenshots/light/auth-login.png) ## Sign in with your email and password **1. Enter your credentials** On the [sign-in page](https://app.sevalla.com/login), enter your **Email** and **Password**, then click **Sign in**. **2. Enter your code** On **Check your second factor**, enter the 6-digit code from the email Sevalla sent you or from your authenticator app. Sevalla checks the code as soon as you type the last digit, or when you click **Verify**. Sevalla opens your dashboard. A wrong email or password shows `Can't find user with this email/password`. To skip the code on a device you trust, select **Don’t ask for a code on this device** before you verify. Sevalla then signs you in without a code for 30 days, as long as you use the same browser and IP address and keep the same two-factor method. ## Sign in with a Git provider Click **GitHub**, **GitLab** or **Bitbucket** on the sign-in page, then approve Sevalla at the provider. This works only for a Git account you connected for sign-in on [My account](/account/overview#connect-git-sign-in). Otherwise, Sevalla shows `No Sevalla account uses this Git account. Sign up, or sign in with your email and password and connect your Git account in your account settings.` ## Sign in with SSO **1. Open single sign-on** On the sign-in page, click **Sign in with SSO**. **2. Enter your work email** In **Work email**, enter the address you use at your company, then click **Continue**. **3. Sign in to your identity provider** Sevalla sends you to your company's identity provider. Sign in there, and you're brought back to Sevalla, signed in. If your company adds people automatically ([just-in-time provisioning](/company/single-sign-on/overview#turn-on-just-in-time-provisioning)) and you don't have a Sevalla account yet, Sevalla first asks you to agree to the Terms of Service and Privacy Policy, then creates your account. Your identity provider decides how long the SSO session lasts. For errors, see [Troubleshoot SSO sign-in](/company/single-sign-on/overview#troubleshoot-sso-sign-in). To sign in with your password instead, click **Sign in with your password instead**. ## Reset your password **1. Request a reset link** On the sign-in page, click **Forgot your password?**. Enter your **Email**, then click **Send reset link**. **2. Open the link** Open the email from Sevalla and click the link. The link works for 24 hours. **3. Set the new password** Enter a **New password** (at least 8 characters, with a lowercase letter, a capital letter and a number), then click **Save new password**. Sevalla shows `Password updated. Sign in with your new password.` and opens the sign-in page. If the request fails, for example because no account uses that address, Sevalla shows `Couldn’t request a reset link. Try again.` A link older than 24 hours shows **This link has expired**; click **Request a new one**. Resetting works the same way for accounts created with a Git provider or through SSO, and it changes only your Sevalla password, not your Git provider or identity provider password. ## Two-factor authentication Sevalla asks for a 6-digit code every time you sign in with your email and password, unless you've trusted the device. Codes come by email by default; you can [use an authenticator app](#use-an-authenticator-app) instead. People who can open [User management](/company/users-and-roles#the-user-management-page) see each person's method in its **2FA** column. | | Email codes | Authenticator app codes | | - | - | - | | Where the code comes from | An email to your account's address | An app such as Google Authenticator or 1Password | | How long a code works | 10 minutes | 30 seconds per code; Sevalla accepts a code up to 1 minute early or late | | New code | **Send a new code**, available 30 seconds after the last email | The app shows a new code every 30 seconds | | Wrong codes | After 10 wrong codes, the code stops working; sign in again for a new one | Enter the current code | If an email code doesn't arrive, check your spam folder. After 30 seconds, click **Send a new code**. ![The Check your second factor step with six code boxes, a Don't ask for a code on this device option, and Back and Verify buttons](https://assets.sevalla.com/screenshots/light/auth-login-two-factor.png) ### Use an authenticator app **1. Start the setup** Click your name at the bottom of the sidebar, then click **My account**. In the **Authenticator app** row, click **Enable**. **2. Add Sevalla to your app** In your authenticator app, scan the QR code. If you can't scan it, enter the setup key shown under the code instead. **3. Enter a code and your password** In **Enter the 6-digit code**, enter the code your app shows. Under **Confirm it’s you**, enter your Sevalla password. Click **Enable authenticator app**. The row shows **Enabled · Codes are generated in your authenticator app**, and Sevalla stops emailing codes. Devices you trusted before ask for a code once more, because the method changed. ![The Enable authenticator app sheet with a QR code, a setup key, a 6-digit code field and a password field](https://assets.sevalla.com/screenshots/light/account-authenticator-app-enable.png) ### Add Sevalla to 1Password 1Password can store the code next to your Sevalla password and fill it in when you sign in. **1. Open the sheet in Sevalla** On **My account**, in the **Authenticator app** row, click **Enable**, and leave the QR code on screen. **2. Add a one-time password field** In 1Password, open your Sevalla login item and click **Edit**. Click **add a field**, then click **One-Time Password**. **3. Scan the QR code** In the new one-time password field, click the QR code icon. 1Password finds the QR code on your screen. Save the item. **4. Finish in Sevalla** Copy the code 1Password shows into **Enter the 6-digit code**, enter your password, and click **Enable authenticator app**. ![A Sevalla login item in 1Password with the add a field menu open and One-Time Password highlighted](https://mintcdn.com/sevalla/a3xHmYExJQcu1_oY/images/1password/add-field-light.png?fit=max\&auto=format\&n=a3xHmYExJQcu1_oY\&q=85\&s=0dcc74720b47958d34ab976a1dfed000) ### Turn off the authenticator app On **My account**, in the **Authenticator app** row, click **Disable**. Enter your Sevalla password and click **Disable**. Sign-in codes come by email again. ### Lost access to your authenticator app If you can't get codes from your authenticator app, our support team can remove it from your account: 1. Email [support@sevalla.com](mailto:support@sevalla.com) from the address on your Sevalla account, and say that you're locked out. 2. Support confirms the address and asks for the last 4 digits and the expiry date of the card on file. 3. Once both match, support removes the authenticator app. Sign in with an email code, then set up the app again. ## Locked accounts After 10 wrong passwords in a row, Sevalla locks the account for 10 minutes and emails you. The sign-in page shows `This account has been locked after multiple failed login attempts. We sent you an email about how you can access your account.` Further wrong passwords lock it for 20 minutes, then 30 minutes at most. While it's locked, signing in shows `This account has been locked.` Wait for the lock to end, then sign in with the right password. If you've forgotten it, [reset your password](#reset-your-password) first. ## Sign out Click your name at the bottom of the sidebar, then click **Sign out**. Changing your password or email address signs you out of every session. # Claude desktop and web Source: https://docs.sevalla.com/ai-agents/claude Add Sevalla as a custom connector in Claude on the web, desktop and mobile, sign in with your Sevalla account, turn it on in a chat, and remove it. Claude on the web, in the desktop app and in the mobile apps connects to the [Sevalla MCP server](/ai-agents/overview) as a custom connector. You add the connector once to your Claude account, and it's available in every Claude app where you're signed in. ## Before you begin * A Sevalla account and a company to work in. * A Claude account. Custom connectors are available on every Claude plan; the Free plan allows one. * On a Team or Enterprise plan, an owner adds the connector for the organization (see [Add the server for an organization](#add-the-server-for-an-organization)). ## Add the server **1. Open the connectors** In Claude, go to **Customize** > **Connectors**, click **+ Add**, then click **Add custom connector**. **2. Add Sevalla** Enter `Sevalla` as the name and `https://mcp.sevalla.com/mcp` as the URL, then continue. Keep the authentication settings Claude detects for the server (OAuth sign-in), and click **Add**. **3. Sign in** Connect the connector when Claude asks. Your browser opens the Sevalla dashboard: pick the company and the permissions, then click **Authorize** ([what each choice means](/ai-agents/overview#sign-in-with-oauth)). ### Add the server for an organization On a Team or Enterprise plan, an owner (or a role with access to manage connectors) goes to **Organization settings** > **Connectors**, clicks **Add**, hovers over **Custom**, selects **Web**, and enters the same name and URL. Each member then opens **Customize** > **Connectors**, finds **Sevalla** and clicks **Connect**, which starts their own Sevalla sign-in. Every member authorizes their own Sevalla company and permissions. ## Check the connection In a chat, click **+** at the lower left, choose **Connectors**, and turn on **Sevalla**. Ask "List my Sevalla services" to make a first call. Claude reads each tool's [annotations](/ai-agents/overview#annotations) to decide which calls need your approval. ## Use an API key instead This page connects Claude with OAuth sign-in. To use an [API key](/developer-tools/api-keys) instead, for example in scripts or CI, connect [Claude Code](/ai-agents/claude-code#use-an-api-key-instead) with the key in a header. ## Remove the server Go to **Customize** > **Connectors**, click the three dots next to **Sevalla** and remove it. On Team and Enterprise plans, owners remove organization connectors in **Organization settings** > **Connectors**. Removing the connector doesn't delete the API key that sign-in created. To revoke it, [delete the key](/developer-tools/api-keys#delete-an-api-key) under **Tools** > **API keys**. Claude's own steps can change: see [custom connectors in the Claude Help Center](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp). # Claude Code Source: https://docs.sevalla.com/ai-agents/claude-code Connect Claude Code to the Sevalla MCP server with one command, sign in with OAuth or an API key, check the connection, and remove it. Claude Code connects to the [Sevalla MCP server](/ai-agents/overview) at `https://mcp.sevalla.com/mcp` as a remote HTTP server. Once connected, Claude Code can deploy, read logs and metrics, and manage your Sevalla services from the chat. ## Before you begin * A Sevalla account and a company to work in. * Claude Code installed. See the [Claude Code MCP docs](https://code.claude.com/docs/en/mcp) for its own options. ## Add the server **1. Add Sevalla** In a terminal, run: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} claude mcp add --transport http --scope user sevalla https://mcp.sevalla.com/mcp ``` `--scope user` makes Sevalla available in all your projects. Leave it out to add the server to the current project only, or use `--scope project` to write it to `.mcp.json` and share it with your team. **2. Sign in** Start Claude Code, type `/mcp`, select **sevalla** and choose **Authenticate**. Your browser opens the Sevalla dashboard: pick the company and the permissions, then click **Authorize** ([what each choice means](/ai-agents/overview#sign-in-with-oauth)). ## Check the connection Run `claude mcp list` to see `sevalla` and its connection status. In Claude Code, `/mcp` lists **sevalla** with its tools. Ask "List my Sevalla services" to make a first call. ## Use an API key instead To skip OAuth, for example on a shared machine or in CI, send an [API key](/developer-tools/api-keys) in a header. Put the server in `.mcp.json` at the root of your project and read the key from an environment variable, so the file holds no secret: ```json .mcp.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "mcpServers": { "sevalla": { "type": "http", "url": "https://mcp.sevalla.com/mcp", "headers": { "Authorization": "Bearer ${SEVALLA_API_KEY}" } } } } ``` Then set the variable before you start Claude Code: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} export SEVALLA_API_KEY="svl_..." claude ``` > [!WARNING] > > Don't pass the key with `claude mcp add --header`: the shell expands it and Claude Code stores the plain key in its configuration file. Never commit a real key. ## Remove the server Run: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} claude mcp remove sevalla ``` If you added the server with a scope, name it: `claude mcp remove --scope user sevalla`. Removing a remote server also deletes its stored OAuth token. To sign out but keep the server, type `/mcp`, select **sevalla** and choose **Clear authentication**. Removing the server doesn't delete the API key that sign-in created. To revoke it, [delete the key](/developer-tools/api-keys#delete-an-api-key) under **Tools** > **API keys**. # Codex Source: https://docs.sevalla.com/ai-agents/codex Connect OpenAI Codex (CLI, IDE extension and desktop app) to the Sevalla MCP server, sign in with OAuth or an API key, check the connection, and remove it. Codex connects to the [Sevalla MCP server](/ai-agents/overview) at `https://mcp.sevalla.com/mcp` as a streamable HTTP server. The Codex CLI, IDE extension and desktop app share one configuration, so adding Sevalla once makes it available in all three. ## Before you begin * A Sevalla account and a company to work in. * Codex installed. See the [Codex MCP docs](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) for its own options. ## Add the server **1. Add Sevalla** In a terminal, run: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} codex mcp add sevalla --url https://mcp.sevalla.com/mcp ``` Codex writes the server to `~/.codex/config.toml`. Or add the server by hand to `~/.codex/config.toml`, or to `.codex/config.toml` in a project (Codex reads project files only in trusted projects): ```toml ~/.codex/config.toml theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} [mcp_servers.sevalla] url = "https://mcp.sevalla.com/mcp" ``` **2. Sign in** Run: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} codex mcp login sevalla ``` Your browser opens the Sevalla dashboard: pick the company and the permissions, then click **Authorize** ([what each choice means](/ai-agents/overview#sign-in-with-oauth)). ## Check the connection Run `codex mcp list`: the list includes `sevalla`. In the Codex TUI or the desktop app, type `/mcp` to see the active servers, then ask "List my Sevalla services". ## Use an API key instead To skip OAuth, send an [API key](/developer-tools/api-keys) as a bearer token. `bearer_token_env_var` names the environment variable that holds the key, so `config.toml` holds no secret: ```toml ~/.codex/config.toml theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} [mcp_servers.sevalla] url = "https://mcp.sevalla.com/mcp" bearer_token_env_var = "SEVALLA_API_KEY" ``` ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} export SEVALLA_API_KEY="svl_..." codex ``` ## Remove the server Sign out, then remove the server: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} codex mcp logout sevalla codex mcp remove sevalla ``` Removing the server doesn't delete the API key that sign-in created. To revoke it, [delete the key](/developer-tools/api-keys#delete-an-api-key) under **Tools** > **API keys**. # Cursor Source: https://docs.sevalla.com/ai-agents/cursor Connect Cursor to the Sevalla MCP server with an install link or mcp.json, sign in with OAuth or an API key, check the connection, and remove it. Cursor connects to the [Sevalla MCP server](/ai-agents/overview) at `https://mcp.sevalla.com/mcp` as a remote server. Once connected, Cursor's agent can deploy, read logs and metrics, and manage your Sevalla services. ## Before you begin * A Sevalla account and a company to work in. * Cursor installed. See the [Cursor MCP docs](https://cursor.com/docs/context/mcp) for its own options. ## Add the server **1. Add Sevalla** Open this install link with Cursor running: [Add Sevalla to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=sevalla\&config=eyJ1cmwiOiJodHRwczovL21jcC5zZXZhbGxhLmNvbS9tY3AifQ==), and confirm the install in Cursor. Or add the server by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` in a project (that project only): ```json ~/.cursor/mcp.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "mcpServers": { "sevalla": { "url": "https://mcp.sevalla.com/mcp" } } } ``` **2. Sign in** When Cursor asks you to sign in to **sevalla**, continue. Your browser opens the Sevalla dashboard: pick the company and the permissions, then click **Authorize** ([what each choice means](/ai-agents/overview#sign-in-with-oauth)). ## Check the connection In Cursor, open **Customize** in the sidebar: **sevalla** is listed and turned on, with its tools. Ask the agent "List my Sevalla services". ## Use an API key instead To skip OAuth, send an [API key](/developer-tools/api-keys) in a header. `${env:SEVALLA_API_KEY}` reads the key from an environment variable, so `mcp.json` holds no secret: ```json ~/.cursor/mcp.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "mcpServers": { "sevalla": { "url": "https://mcp.sevalla.com/mcp", "headers": { "Authorization": "Bearer ${env:SEVALLA_API_KEY}" } } } } ``` Set `SEVALLA_API_KEY` in the environment Cursor starts from, then restart Cursor. ## Remove the server Remove **sevalla** in **Customize**, or delete the `sevalla` entry from `~/.cursor/mcp.json` or `.cursor/mcp.json`. To keep the server but stop the agent from using it, turn it off in **Customize** instead. Removing the server doesn't delete the API key that sign-in created. To revoke it, [delete the key](/developer-tools/api-keys#delete-an-api-key) under **Tools** > **API keys**. # OpenCode Source: https://docs.sevalla.com/ai-agents/opencode Connect OpenCode to the Sevalla MCP server in opencode.json, sign in with OAuth or an API key, check the connection, and remove it. OpenCode connects to the [Sevalla MCP server](/ai-agents/overview) at `https://mcp.sevalla.com/mcp` as a remote server. Once connected, OpenCode can deploy, read logs and metrics, and manage your Sevalla services from the same session. ## Before you begin * A Sevalla account and a company to work in. * OpenCode installed. See the [OpenCode MCP docs](https://opencode.ai/docs/mcp-servers) for its own options. ## Add the server **1. Add Sevalla** Add Sevalla under `mcp` in `~/.config/opencode/opencode.json` (all projects) or in `opencode.json` at the root of a project (that project only): ```json ~/.config/opencode/opencode.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "$schema": "https://opencode.ai/config.json", "mcp": { "sevalla": { "type": "remote", "url": "https://mcp.sevalla.com/mcp", "enabled": true } } } ``` OpenCode merges both files. When they set the same key, the project file wins. **2. Sign in** Run: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} opencode mcp auth sevalla ``` Your browser opens the Sevalla dashboard: pick the company and the permissions, then click **Authorize** ([what each choice means](/ai-agents/overview#sign-in-with-oauth)). OpenCode stores the token in `~/.local/share/opencode/mcp-auth.json`. ## Check the connection Run `opencode mcp list` to see `sevalla` and its status, and `opencode mcp auth list` to see whether it's signed in. Start OpenCode and ask "List my Sevalla services". ## Use an API key instead To skip OAuth, turn it off for the server and send an [API key](/developer-tools/api-keys) in a header. `{env:SEVALLA_API_KEY}` reads the key from an environment variable, so the file holds no secret: ```json ~/.config/opencode/opencode.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "$schema": "https://opencode.ai/config.json", "mcp": { "sevalla": { "type": "remote", "url": "https://mcp.sevalla.com/mcp", "oauth": false, "headers": { "Authorization": "Bearer {env:SEVALLA_API_KEY}" } } } } ``` ## Remove the server Sign out, then delete the `sevalla` entry from `opencode.json`: ```bash theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} opencode mcp logout sevalla ``` To keep the entry but stop OpenCode from using it, set `"enabled": false`. Removing the server doesn't delete the API key that sign-in created. To revoke it, [delete the key](/developer-tools/api-keys#delete-an-api-key) under **Tools** > **API keys**. # Sevalla MCP server Source: https://docs.sevalla.com/ai-agents/overview Connect an AI agent to Sevalla over MCP to deploy, read logs and metrics, and manage services: server URL, sign-in, the 27 tools, permissions and protocol versions. The Sevalla MCP server lets an AI agent work with your Sevalla company through the [Model Context Protocol](https://modelcontextprotocol.io). The agent can deploy and roll back, read deployment, runtime and access logs, check metrics, manage environment variables, scale processes, add domains, create services, and reach the rest of the [Sevalla API](/developer-tools/api). Every MCP client that supports remote servers connects to the same hosted URL: ```text theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} https://mcp.sevalla.com/mcp ``` ## Connect a client > [card] [Claude Code](/ai-agents/claude-code) > > Add the server with `claude mcp add`. > [card] [Claude desktop and web](/ai-agents/claude) > > Add Sevalla as a custom connector. > [card] [Codex](/ai-agents/codex) > > Add the server with `codex mcp add`. > [card] [Cursor](/ai-agents/cursor) > > Add the server to `mcp.json`. > [card] [Windsurf (Devin Desktop)](/ai-agents/windsurf) > > Add the server to `mcp_config.json`. > [card] [OpenCode](/ai-agents/opencode) > > Add the server to `opencode.json`. Any other client works the same way: give it `https://mcp.sevalla.com/mcp` and let it sign in with OAuth, or send an [API key](#use-an-api-key-instead). ## How it works ![Your AI agent calls tools on Sevalla's MCP server, signed in with OAuth or an API key. The server calls the Sevalla API, limited by the key's permissions, to manage your company's applications, databases and static sites, and environment variable values are never returned.](https://assets.sevalla.com/brand/diagrams/docs/mcp-flow-light.svg) The MCP client sends each tool call to `https://mcp.sevalla.com/mcp` with a bearer token. The server checks the token, turns the call into one or more [Sevalla API](/developer-tools/api) requests made with the API key behind the token, and returns the result to the agent. | Property | Value | | - | - | | URL | `https://mcp.sevalla.com/mcp` | | Transport | Streamable HTTP (`POST`). The server is stateless and opens no event stream: a `GET` to the URL returns `405`. | | Protocol versions | `2026-07-28`, and for older clients `2025-11-25`, `2025-06-18`, `2025-03-26` and `2024-11-05`, on the same URL with the same tools | | Authentication | OAuth 2.1 with PKCE (`S256`), or a Sevalla API key as a bearer token | | OAuth client registration | OAuth Client ID Metadata Documents, or Dynamic Client Registration for older clients | | OAuth scope | `mcp:tools` | | What the agent can reach | One company: the company of the API key behind the connection | | Data kept between requests | None. Each request creates a new server bound to the caller's key. | | Source code | [github.com/sevalla/mcp](https://github.com/sevalla/mcp) (MIT) | ## Sign in with OAuth OAuth is the default: you add the URL to your client and sign in through the Sevalla dashboard, with no secret in the client's configuration. **1. Start the sign-in from the client** Add the server to your client and start its sign-in (each [client page](#connect-a-client) says how). The client opens `app.sevalla.com` in your browser. If you aren't signed in to Sevalla, sign in first. **2. Pick the company** The page is titled **Authorize** followed by the client's name. If you belong to more than one company, select the company the agent works in. The agent can only reach that company. **3. Set the permissions** Under **Set permissions**, choose **Predefined role** and pick a role, or choose **Custom capabilities** and tick individual permissions, optionally limited to specific resources. These are the same choices as for any [API key](/developer-tools/api-keys#permissions). Pick **Company viewer** to keep the agent read-only. **4. Authorize** Click **Authorize**. The page shows **Authorization successful** and sends you back to the client. To refuse, click **Deny**. Approving the request creates an API key in the company with the permissions you chose and no expiration. Its name starts with `Sevalla MCP` followed by the client and the time you approved it, and it's listed under **Tools** > **API keys**. The client receives an access token that wraps this key: it works until you disable or delete the key, or until the old token expires after you [rotate it](/developer-tools/api-keys#rotate-an-api-key). Then sign in again from the client. The request expires 5 minutes after the client starts it. If the page says **This device code has expired**, start the sign-in again from the client. ## Use an API key instead Clients that can't do OAuth, CI jobs and scripts can send a Sevalla API key directly: ```text theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} Authorization: Bearer svl_... ``` [Create an API key](/developer-tools/api-keys#create-an-api-key) with only the permissions the agent needs, and keep it in an environment variable, never in a file you commit. Each client page shows where the header goes. The key works with the MCP server exactly as it does with the API. ## Tools The server has 27 tools: 22 for everyday tasks, and 5 generic tools that run the rest of the Sevalla API by operation ID. Every tool has a title (clients show it when they ask for approval) and explicit annotations. ### Discovery | Tool | Title | What it does | Kind | | - | - | - | - | | `list_services` | List Sevalla services | Lists applications, static sites and databases with their IDs, names and status. Filters by type, name or project. | Read | | `get_application` | Get Sevalla application | Returns one application with its processes and their scaling, its domains with DNS records and verification errors, and its latest deployment. | Read | | `get_static_site` | Get Sevalla static site | Returns one static site with its build settings, domains and latest deployment. | Read | | `get_database` | Get Sevalla database | Returns one database: engine, version, status, size, internal and external endpoints, recent backups and internal connections. Passwords aren't included. | Read | | `get_platform_options` | Get Sevalla regions and sizes | Lists the locations (clusters) and the sizes for application processes and databases, with their CPU, memory and storage. | Read | | `search_sevalla_docs` | Search Sevalla documentation | Searches docs.sevalla.com and returns the best-matching pages with their most relevant section. | Read | ### Deployments | Tool | Title | What it does | Kind | | - | - | - | - | | `list_deployments` | List Sevalla deployments | Lists the deployments of an application or static site, newest first, with status, trigger, branch, commit and timing. | Read | | `get_deployment` | Get Sevalla deployment | Returns one deployment: status, steps, branch, commit, image, build error and timing. | Read | | `get_deployment_logs` | Get Sevalla deployment logs | Returns a deployment's build and rollout log, by default the last 100 lines. Can keep only error lines or lines that contain a text. | Read | | `trigger_deployment` | Deploy Sevalla service | Deploys an application or static site: by default the latest commit of the default branch, or another branch, a Docker image, or (applications) a restart without a rebuild. | Update | | `rollback_deployment` | Roll back Sevalla service | Redeploys an earlier successful deployment, reusing its build. Applications go back to their most recent successful deployment, static sites to the deployment you name or the last successful one. | Update | ### Observability | Tool | Title | What it does | Kind | | - | - | - | - | | `search_runtime_logs` | Search Sevalla runtime logs | Returns the stdout and stderr of an application's processes, by default for the last 60 minutes. Filters by severity or text. | Read | | `search_access_logs` | Search Sevalla access logs | Returns the HTTP requests to an application or static site, by default for the last 60 minutes. Filters by status code or class (`5xx`), method, path prefix or text. | Read | | `get_metrics` | Get Sevalla metrics | Returns traffic, response time, status code, country and page metrics for an application or static site, CPU, memory, instance and exit code metrics for a process, or CPU, memory and storage for a database. By default for the last 60 minutes. | Read | ### Configuration | Tool | Title | What it does | Kind | | - | - | - | - | | `list_environment_variables` | List Sevalla environment variables | Lists the keys and scoping (build, runtime, preview, branch) of an application's, a static site's or the company's global environment variables. Values are withheld. | Read | | `set_environment_variables` | Set Sevalla environment variables | Creates or updates environment variables without returning their values. Changes apply at the next deployment, or right away when the agent asks for a redeployment. | Update | | `delete_environment_variables` | Delete Sevalla environment variables | Deletes environment variables by key. | Delete | | `scale_process` | Scale Sevalla process | Sets a process's fixed instance count or autoscaling range and its size. By default restarts the application from its current build so the change applies now. | Update | | `add_domain` | Add Sevalla custom domain | Adds a custom domain to an application or static site and returns the DNS records to create. | Create | ### Create | Tool | Title | What it does | Kind | | - | - | - | - | | `create_application` | Create Sevalla application | Creates an application from a Git repository or Docker image with one web process, and by default starts its first deployment. | Create | | `create_static_site` | Create Sevalla static site | Creates a static site from a Git repository and starts its first build. Build settings it isn't given are detected. | Create | | `create_database` | Create Sevalla database | Creates a PostgreSQL, MySQL, MariaDB, Redis or Valkey database. Can also connect it to an application in the same location and store the connection URL in an environment variable (`DATABASE_URL` by default). The password is generated and never returned. | Create | ### Rest of the API | Tool | Title | What it does | Kind | | - | - | - | - | | `sevalla_api_search` | Search Sevalla API operations | Searches the operations of the Sevalla API by keyword and returns their IDs, parameters, body fields and the tool that runs each. Reads the API reference, not your company. | Read | | `sevalla_api_read` | Read from the Sevalla API | Runs one read-only (`GET`) operation by ID: projects, pipelines, load balancers, buckets, webhooks, usage alerts, users, API keys and more. | Read | | `sevalla_api_create` | Create through the Sevalla API | Runs one operation that only adds something new, such as a project, pipeline, process, backup, bucket, webhook or load balancer. | Create | | `sevalla_api_update` | Update through the Sevalla API | Runs one operation that changes existing state: settings, suspend or activate, database restart or backup restore, pipeline promotion, cache purges, maintenance mode, or a command in a running process. | Update | | `sevalla_api_delete` | Delete through the Sevalla API | Permanently deletes one resource, from a domain, process, backup, webhook or API key up to an application, static site, database, pipeline, project, load balancer or bucket. | Delete | The generic tools accept only operation IDs from a reviewed list generated from the [API reference](https://api-docs.sevalla.com). The server, not the model, picks the HTTP method and path, and each tool runs only operations of its own kind: `sevalla_api_read` can't run a delete. Operations that have a dedicated tool, such as deployments, must go through that tool. Three operations aren't available at all: creating and polling device codes (part of sign-in) and the interactive terminal session (it needs a WebSocket). ### Annotations Each tool's kind sets its MCP annotations. Clients use them to decide which calls run without asking and which need your confirmation. | Kind | `readOnlyHint` | `destructiveHint` | `idempotentHint` | `openWorldHint` | | - | - | - | - | - | | Read | `true` | `false` | `true` | `false` | | Create | `false` | `false` | `false` | `true` | | Update | `false` | `true` | `false` | `true` | | Delete | `false` | `true` | `true` | `true` | Three tools differ from their kind: `set_environment_variables` and `scale_process` have `idempotentHint: true`, and `scale_process` and `create_database` have `openWorldHint: false`. ## Permissions and secrets The agent can do exactly what the API key behind the connection allows, nothing more. A tool call that needs a permission the key doesn't have fails with the API's `403` message, for example `This API key is missing the APP:UPDATE permission. Grant it to the key or use a key that has it.` To change what an agent can do, [update the key's permissions](/developer-tools/api-keys#update-an-api-key). | What | How the server handles it | | - | - | | Environment variable values | Never returned. The tools list keys and scoping, and set or delete variables without echoing values. | | Database passwords | Not returned by `get_database` or `create_database`. | | Everything else in the API | Available within the key's permissions, including deleting whole services and managing API keys. | | Operations that issue a new secret | Return it to the agent: rolling a webhook secret, regenerating a deploy hook, rotating object storage credentials, creating or rotating an API key. | | Commands run in a process and application logs | Can contain secrets, and the agent sees them. | > [!WARNING] > > Give an agent the smallest set of permissions it needs. A key with a role such as **Company admin** lets the agent delete applications, databases and their backups, which you can't undo. ## Example prompts * "Why did the latest deployment of storefront fail?" * "Deploy the main branch of storefront and tell me when it's live." * "Summarize the errors in storefront's runtime logs from the last hour." * "Create a PostgreSQL database called orders-db in Frankfurt and connect it to storefront." * "Add shop.example.com to storefront and tell me which DNS records to create." * "Which of my applications returned the most 5xx responses today?" ## Disconnect an agent Removing the server from a client stops that client from calling it. Each client page has the steps under **Remove the server**. Removing the server doesn't delete the API key in Sevalla: to revoke access everywhere the key is used, [disable or delete the key](/developer-tools/api-keys#disable-or-enable-an-api-key) under **Tools** > **API keys**. From then on, every tool call made with the key fails with `401 Unauthorized`. ## Self-host the server The server is open source and runs on Node.js 24 or later. To run it yourself, or locally over stdio with an API key in `SEVALLA_API_KEY`, follow the [repository README](https://github.com/sevalla/mcp#self-hosting). Most people use the hosted server. # Windsurf (Devin Desktop) Source: https://docs.sevalla.com/ai-agents/windsurf Connect Devin Desktop, formerly Windsurf, to the Sevalla MCP server in mcp_config.json, sign in with OAuth or an API key, check the connection, and remove it. Devin Desktop, the new name of the Windsurf editor since Jun 2, 2026, connects to the [Sevalla MCP server](/ai-agents/overview) at `https://mcp.sevalla.com/mcp` as a remote HTTP server. Its agents read MCP servers from `mcp_config.json`. ## Before you begin * A Sevalla account and a company to work in. * Devin Desktop (or Windsurf) installed. See the [Devin MCP configuration docs](https://docs.devin.ai/cli/extensibility/mcp/configuration) for its own options. ## Add the server **1. Add Sevalla** Open `~/.config/devin/mcp_config.json` (on Windows, `%APPDATA%\devin\mcp_config.json`), create it if it doesn't exist, and add Sevalla under `mcpServers`: ```json ~/.config/devin/mcp_config.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "mcpServers": { "sevalla": { "url": "https://mcp.sevalla.com/mcp" } } } ``` To share the server with a project's team instead, put the same entry in `.devin/mcp_config.json` in the repository. **2. Sign in** The first time the agent uses Sevalla, Devin Desktop asks you to authenticate. If the server shows **Needs auth** in the MCP list, click **Authenticate**. Your browser opens the Sevalla dashboard: pick the company and the permissions, then click **Authorize** ([what each choice means](/ai-agents/overview#sign-in-with-oauth)). > [!NOTE] > > Windsurf versions from before the rename read `~/.codeium/windsurf/mcp_config.json` and take the URL as `serverUrl` instead of `url`: `{"mcpServers": {"sevalla": {"serverUrl": "https://mcp.sevalla.com/mcp"}}}`. ## Check the connection Open the MCP list in Devin Desktop: **sevalla** is listed with its tools and no **Needs auth** state. Ask the agent "List my Sevalla services". The Devin Local agent asks for approval before each MCP tool call; you can allow a tool, or every Sevalla tool, for the session or permanently. ## Use an API key instead To skip OAuth, send an [API key](/developer-tools/api-keys) in a header. `${env:SEVALLA_API_KEY}` reads the key from an environment variable, so the file holds no secret: ```json ~/.config/devin/mcp_config.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "mcpServers": { "sevalla": { "url": "https://mcp.sevalla.com/mcp", "headers": { "Authorization": "Bearer ${env:SEVALLA_API_KEY}" } } } } ``` If your team's admin uses an MCP allowlist, the server ID in the allowlist must match the key in `mcp_config.json` (`sevalla`) exactly. ## Remove the server Delete the `sevalla` entry from `mcp_config.json`. To keep it but stop the agent from using it, turn it off with its toggle in the MCP list. Removing the server doesn't delete the API key that sign-in created. To revoke it, [delete the key](/developer-tools/api-keys#delete-an-api-key) under **Tools** > **API keys**. # Analytics Source: https://docs.sevalla.com/applications/analytics Read an application's compute charts (CPU, memory, instances per process) and web charts (requests, response times, status codes, bandwidth, countries, slowest requests, top pages). The **Analytics** tab charts how an application uses its resources and how it serves traffic. **Compute** shows CPU, memory and instance counts for each web process and background worker. **Web** shows the HTTP traffic to the application's domains, from its [access logs](/applications/logs): requests, response times, status codes, bandwidth, countries and the busiest and slowest paths. ## Open analytics **1. Open the Analytics tab** In the sidebar, click **Applications**, then click the application. Click the **Analytics** tab. **2. Pick the view and range** Choose **Compute** or **Web**, then pick a time range. The time range picker offers **Last 1 hour** (the default), **Last 6 hours**, **Last 12 hours**, **Last 1 day**, **Last 2 days**, **Last 4 days**, **Last 7 days**, **Last 14 days** and **Last 30 days**, or a custom start and end within the last 60 days. With a preset, a **Live** indicator shows that the charts move forward on their own. Every chart works the same way: * Hover a chart to see its values; the other charts on the page show the same moment. * Drag across a chart to zoom every chart into that period. * Click **View as table** on a chart to read its data as a table. * A chart that fails to load shows **Try again**; the others keep working. The view, range, process and filters are part of the page's URL, so a copied link opens the same view. ## Compute Compute covers web processes and background workers. Cron jobs and jobs report no usage here; an application with only those shows **No processes to measure**. ![The Compute view of the Analytics tab over the last 7 days, with the process picker, Show limit and the CPU now, Memory now, Instances and Process size tiles](https://assets.sevalla.com/screenshots/light/app-analytics.png) Pick the process at the top; the web process is selected first. **Show limit** (on by default) draws the process size's limit on the CPU and memory charts. | Tile or chart | What it shows | | - | - | | **CPU now** | The latest CPU use, as a percentage of the process size's CPU, and the average over the range | | **Memory now** | The latest memory use, and the peak over the range | | **Instances** | How many instances run now, and whether the process uses manual scaling or autoscaling (with its maximum) | | **Process size** | The [instance size](/applications/scaling#instance-sizes) and its CPU and memory | | **Memory usage** | Memory used over time, against the limit | | **CPU usage** | CPU used over time, against the limit | | **Instance count** | Instances running over time, for a fixed count or up to the autoscaling maximum | A gap in a chart means no data for that time, for example while the process wasn't running. A process that keeps reaching its memory limit restarts with exit code `137`; give it a [larger size](/applications/scaling#change-the-size-of-a-process). A process that stays near 100 % CPU is throttled; give it a larger size or [more instances](/applications/scaling#horizontal-autoscaling). ## Web Web covers the HTTP requests to the application's domains. | Tile or chart | What it shows | | - | - | | **Requests** | Total requests in the range | | **Avg. response time** | Average time to answer a request | | **Bandwidth** | Data sent to visitors in the range | | **Server errors** | The share of `5xx` responses, and how many there were | | **Requests per minute** | Requests per minute over time | | **Response time** | Response time over time: average (**Avg**) and the **P90**, **P95** and **P99** percentiles | | **Status codes** | Responses over time by status class, `1xx` to `5xx` | | **Bandwidth** (chart) | Data sent over time | | **Requests by country** | A world map and a ranked list of countries by requests. Hover a country to see its count; click it, or use the filter and exclude buttons in the list, to filter every chart | | **Slowest requests** | The 10 paths with the highest average response time | | **Top pages** | The 10 most requested paths, with their number of visits | ![The Requests by country card with a world map and a ranked list of countries](https://assets.sevalla.com/screenshots/light/app-analytics-countries.png) ### Filter web analytics Filters apply to every chart in **Web**. Click **Add filter**, pick a **Field** and a **Condition**, enter or pick a **Value**, and click **Apply filter**. Each applied filter shows above the charts; click its remove button to drop it. | Field | Values | | - | - | | **Source IP** | An IP address | | **Country** | A country | | **Device type** | Desktop, Mobile, Tablet, Unknown | | **HTTP method** | `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD`, `OPTIONS` and the other methods | | **Path** | A request path, such as `/checkout` | | **User agent** | A user agent string | | **HTTP version** | `HTTP/1.0`, `HTTP/1.1`, `HTTP/2`, `HTTP/3` and others | | **Status code** | A status code, such as `404` | Every field offers the conditions equals and does not equal. Text fields (**Source IP**, **Path**, **User agent**) add contains, does not contain, starts with, does not start with, ends with and does not end with; **Status code** adds greater than or equals and less than or equals. ## API and CLI | Data | API | CLI | | - | - | - | | CPU usage and limit | [Get process CPU usage](https://api-docs.sevalla.com/v3/applications/get-process-cpu-usage), [Get process CPU limit](https://api-docs.sevalla.com/v3/applications/get-process-cpu-limit) | `sevalla apps processes metrics cpu-usage ` (also `cpu-limit`) | | Memory usage and limit | [Get process memory usage](https://api-docs.sevalla.com/v3/applications/get-process-memory-usage), [Get process memory limit](https://api-docs.sevalla.com/v3/applications/get-process-memory-limit) | `sevalla apps processes metrics memory-usage ` (also `memory-limit`) | | Instance count | [Get process instance count](https://api-docs.sevalla.com/v3/applications/get-process-instance-count) | `sevalla apps processes metrics instance-count ` | | Exit codes | [Get process exit codes](https://api-docs.sevalla.com/v3/applications/get-process-exit-codes) | `sevalla apps processes metrics exit-codes ` | | Requests per minute | [Get application requests per minute](https://api-docs.sevalla.com/v3/applications/get-application-requests-per-minute) | `sevalla apps metrics requests-per-minute ` | | Response time | [Get application response time](https://api-docs.sevalla.com/v3/applications/get-application-response-time), [Get application average response time](https://api-docs.sevalla.com/v3/applications/get-application-average-response-time) | `sevalla apps metrics response-time ` (also `response-time-avg`) | | Status codes | [Get application status code breakdown](https://api-docs.sevalla.com/v3/applications/get-application-status-code-breakdown), [Get application top status codes](https://api-docs.sevalla.com/v3/applications/get-application-top-status-codes) | `sevalla apps metrics status-codes ` (also `top-status-codes`) | | Countries | [Get application top countries](https://api-docs.sevalla.com/v3/applications/get-application-top-countries) | `sevalla apps metrics top-countries ` | | Slowest requests | [Get application slowest requests](https://api-docs.sevalla.com/v3/applications/get-application-slowest-requests) | `sevalla apps metrics slowest-requests ` | | Top pages | [Get application top pages](https://api-docs.sevalla.com/v3/applications/get-application-top-pages) | `sevalla apps metrics top-pages ` | # Buildpacks Source: https://docs.sevalla.com/applications/builds/buildpacks Build an application with Heroku's Cloud Native Buildpacks: pack builders, adding and ordering buildpacks, language versions, the Procfile and the start command. Buildpacks build your application with Heroku's [Cloud Native Buildpacks](https://buildpacks.io/): each buildpack detects one language from the repository, installs it and your dependencies, and the result is a container image that runs like it would on Heroku. Choose Buildpacks when you move an application from Heroku. In the API and in a deployment's details, Buildpacks is the build type `pack`. ## How Buildpacks build your application Sevalla runs `pack build` with the **Pack builder** you choose, in the [build path](/applications/builds/overview#build-settings): * With no buildpacks added, the builder detects your languages itself and runs every buildpack that matches. * With buildpacks added, only those run, in the order of the list. The web process's start command on the [Processes](/applications/processes) tab runs through the buildpacks' launcher, so the language binaries are on the `PATH`. With an empty start command, the image's default process runs. ## Pack builders | Pack builder | Base | Notes | | - | - | - | | **heroku/builder:24** | Ubuntu 24.04 | Recommended | | **heroku/builder:22** | Ubuntu 22.04 | Deprecated by Heroku. New applications have it saved until you choose another. | Both builders support .NET, Go, Java, Node.js, PHP, Python, Ruby and Scala. Moving to a new builder can change the system libraries your application links against: read [Heroku's builder changelogs](https://github.com/heroku/cnb-builder-images) and test the change on a staging application first. ## Use Buildpacks **1. Open the build strategy** In the sidebar, click **Applications**, then click the application. On the **Settings** tab, in the **Build strategy** section, click **Update build strategy**. **2. Choose Buildpacks** Click **Buildpacks**. Choose the **Pack builder**, and set the **Build path** if the application isn't at the repository root. **3. Add buildpacks if you need them** To control which buildpacks run, choose one in **Add buildpack**. Repeat for each, then order them under **Buildpack order** with the up and down arrows. **4. Save and deploy** Click **Update build strategy**, then deploy the application. The **Build strategy** section shows **Buildpacks**, the **Pack builder** and the numbered **Buildpacks** you added. ![The Update build strategy sheet with Buildpacks selected, the pack builder and the buildpack order](https://assets.sevalla.com/screenshots/light/app-settings-build-strategy-buildpacks.png) ## Add and order buildpacks **Add buildpack** offers Heroku's buildpacks for Node.js (`heroku/nodejs`), Python (`heroku/python`), PHP (`heroku/php`), Java (`heroku/java`), Scala (`heroku/scala`), Go (`heroku/go`) and Ruby (`heroku/ruby`). Each can be added once. Buildpacks run in the order listed: **#1** first. Put the buildpack of your application's main language last, after the ones it depends on. For example, a Ruby on Rails application that compiles its assets with Node.js lists `heroku/nodejs` as **#1** and `heroku/ruby` as **#2**. To remove one, click its trash icon. ## Set the language version Without a version in your repository, a buildpack installs its own default, usually the latest. Pin the version in your files: | Language | Set the version with | | - | - | | Node.js | `engines.node` in `package.json`, for example `"22.x"`. `engines.npm` or `engines.yarn` pin the package manager. | | Python | A `.python-version` file, for example `3.13` | | PHP | `require.php` in `composer.json`, for example `"php": "~8.3.0"` | | Go | The `go` directive in `go.mod` | | Java | `java.runtime.version` in `system.properties`, for example `java.runtime.version=21` | | Scala | `java.runtime.version` in `system.properties`, and `sbt.version` in `project/build.properties` | | Ruby | The `ruby` line in the `Gemfile`, for example `ruby "3.3.6"` | Dependencies and their versions come from your usual files: `package.json` and its lock file, `requirements.txt`, `poetry.lock` or `uv.lock`, `composer.json`, `Gemfile.lock`, `pom.xml` or `build.gradle`, `go.mod`. Each buildpack's documentation lists every option: see [Heroku's Cloud Native Buildpacks](https://github.com/heroku/buildpacks). ## Configure PHP To change `php.ini` settings for a folder, add a `.user.ini` file next to your `.php` files; see the [PHP manual](https://www.php.net/manual/en/configuration.file.per-user.php) for the settings it can change. PHP extensions come from the `require` section of `composer.json`, for example `"ext-imagick": "*"`. ## Processes and the Procfile On Heroku, a `Procfile` names your processes, for example `web: bundle exec puma -C config/puma.rb`. On Sevalla, set each process's command on the [Processes](/applications/processes) tab instead: copy the `web` entry into the web process's start command, and create a background worker, cron job or job for each other entry, for example `bundle exec sidekiq`. Setting the start command explicitly means the web process doesn't depend on which process the buildpacks make the image's default. Sevalla doesn't run a `release` entry: create a [job](/applications/processes#jobs) with the start policy **Before deployment** for it, for example `bundle exec rails db:migrate`. # Dockerfile Source: https://docs.sevalla.com/applications/builds/dockerfile Build an application from a Dockerfile in its repository: Dockerfile path and context, build arguments, multi-stage builds, private base images, the port and the start command. The Dockerfile build strategy builds the `Dockerfile` in your repository with Docker, exactly as written: you choose the base image, the system packages and the language. Use it when your language or setup isn't detected by [Ingot](/applications/builds/ingot), [Nixpacks](/applications/builds/nixpacks), [Railpack](/applications/builds/railpack) or [Buildpacks](/applications/builds/buildpacks), or when you want full control over the image. To deploy an image you've already built elsewhere, use a [Docker image](/applications/docker-images) source instead. ## How Sevalla builds your Dockerfile Sevalla clones the repository and runs a Docker build with: * the **Dockerfile path** as the Dockerfile, * the **Docker context** as the build context, with its `.dockerignore`, * every [environment variable](/applications/environment-variables) marked **Available during buildtime**, and the [variables Sevalla sets](/applications/environment-variables#variables-sevalla-sets), as build arguments, * a `docker login` with the **Docker registry credential** first, when you choose one. The image is the Dockerfile's last stage. Sevalla doesn't pass a `--target`, so you can't build an earlier stage of a multi-stage Dockerfile. ## Use a Dockerfile **1. Open the build strategy** In the sidebar, click **Applications**, then click the application. On the **Settings** tab, in the **Build strategy** section, click **Update build strategy**. **2. Choose Dockerfile** Click **Dockerfile**. Enter the **Dockerfile path** and the **Docker context**, both relative to the repository root. **3. Add a registry credential if the base image is private** In **Docker registry credential**, choose the [registry credential](/applications/docker-images#add-a-registry-credential) for the registry your `FROM` images come from. Leave **None (public images only)** for public base images. **4. Save and deploy** Click **Update build strategy**, then deploy the application. The **Build strategy** section shows **Dockerfile** with the **Dockerfile path**, the **Docker context** and the **Registry credential**. ![The Update build strategy sheet with Dockerfile selected, the Dockerfile path, the Docker context and the Docker registry credential](https://assets.sevalla.com/screenshots/light/app-settings-build-strategy-dockerfile.png) | Field | What it is | Default | | - | - | - | | **Dockerfile path** | The Dockerfile, relative to the repository root. Required. | `Dockerfile` | | **Docker context** | The folder sent to the build, relative to the repository root. `COPY` paths in the Dockerfile are relative to it. Required. | `.` | | **Docker registry credential** | Logs in to a registry to pull private base images | **None (public images only)** | In a monorepo, point both at the application's folder, for example **Dockerfile path** `apps/storefront/Dockerfile` and **Docker context** `apps/storefront`. If the build fails to log in with the credential, the log says `Docker registry authentication failed` and the build continues without it. ## See which Dockerfile is running Sevalla records the Dockerfile and `.dockerignore` of every build in the application's [Dockerfile history](/applications/builds/overview#dockerfile-history), with a new version each time either file changes. On the **Deployments** tab, next to **Dockerfile**, click **History** to see which version is running and compare any two. A deployment's **Dockerfile** tab shows the file its image was built from. ![The Dockerfile history sheet of an application that builds from its repository, with version 2 active and its changes against version 1](https://assets.sevalla.com/screenshots/light/app-deployments-dockerfile-history-repository.png) ## Make the image run on Sevalla | Requirement | Why | | - | - | | Listen on `PORT` | Sevalla sets `PORT` at runtime to the web process's port (`8080` unless you change it on the **Networking** tab) and sends traffic there. Read it instead of hard-coding a port, for example `process.env.PORT` in Node.js. | | A start command | The image's `ENTRYPOINT` and `CMD` start the web process. A start command set on the web process replaces both, and runs with `/bin/sh -l -c`, so the image needs `/bin/sh`. Sevalla keeps the image's `PATH` in that shell, so tools the Dockerfile puts on `PATH` work in start commands. | | Built for `linux/amd64` | The platform Sevalla runs | | A shell for the web terminal | The [web terminal](/applications/web-terminal) opens `sh`, `bash` or `zsh` in a running instance. Images without a shell, such as distroless ones, can't open it; install `bash` if you want it, for example `RUN apk add --no-cache bash` on Alpine. | ## Use build arguments Every build-time environment variable is passed as a build argument. Declare it with `ARG` in the stage that needs it: ```dockerfile Dockerfile theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} FROM node:22-alpine AS build WORKDIR /app ARG VITE_API_URL COPY package*.json ./ RUN npm ci COPY . . RUN npm run build ``` An `ARG` is available only in the stage that declares it. Don't copy secrets into `ENV` or into files in the final stage: anyone who can pull the image can read them. Runtime-only variables don't need to be in the Dockerfile; Sevalla sets them in the running container. ## Example Dockerfile A multi-stage Dockerfile for a Node.js application that builds in one stage and runs a smaller image in the last one: ```dockerfile Dockerfile theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} FROM node:22-alpine AS build WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npm run build && npm prune --omit=dev FROM node:22-alpine WORKDIR /app ENV NODE_ENV=production COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/dist ./dist COPY package.json ./ CMD ["node", "dist/server.js"] ``` The server reads `process.env.PORT`. Add a `.dockerignore` with `node_modules` and `.git` so the context stays small and the build fast. ## Run software that needs a disk With a Dockerfile you can run software Sevalla doesn't offer as a managed service, for example a database engine, as long as it runs in a container. Its data must be on a [disk](/applications/disks), or it's lost on every deployment and restart, and a process with a disk is briefly interrupted during each rollout. For PostgreSQL, MySQL, MariaDB, Redis and Valkey, a [managed database](/databases/overview) gives you backups and no downtime on deployments. # Ingot Source: https://docs.sevalla.com/applications/builds/ingot Build an application with Ingot, Sevalla's own builder: how it generates a Dockerfile, supported languages, language versions, ingot.json, INGOT_ variables, monorepos and the image it builds. Ingot is Sevalla's own builder: it reads your repository, detects the language, framework, language version and package manager, writes a production Dockerfile for the application, and Sevalla builds that Dockerfile with BuildKit. It's the default build strategy for new applications from Git. It needs no configuration for most applications, and you can override what it detects with an `ingot.json` file or `INGOT_*` environment variables. ## How Ingot builds your application Every deployment that builds runs two steps in the build log: 1. **Generate.** Ingot reads the files in the [build path](/applications/builds/overview#build-settings) and writes a Dockerfile and a `.dockerignore` for them. The build log prints `📦 Generating Dockerfile using ingot...`, then the build plan: each decision and the file it came from. See [Read the build plan](#read-the-build-plan). 2. **Build.** Sevalla builds the generated Dockerfile with the build path as the context and pushes the image. The build log prints `📦 Building and pushing docker image using the generated Dockerfile...`, then the Docker build. ![Sevalla fetches a commit from your Git repository. Ingot reads it and writes a build plan and a Dockerfile, BuildKit builds the Dockerfile into an image in Sevalla's registry, with the build's environment variables passed in as a secret, and every process of the application runs from that image with its own start command.](https://assets.sevalla.com/brand/diagrams/docs/ingot-build-light.svg) Every process of the application (web, worker, cron job and job) runs from that one image, each with its own start command. Ingot generates the Dockerfile again on every deployment that builds, so a change to your repository or to an `INGOT_*` variable takes effect with the next deployment. Restarts and rollbacks reuse an existing image and don't run Ingot. What makes Ingot different from the other builders: * **The same input gives the same Dockerfile.** Ingot never runs your code and never uses the network while it plans. Language versions come from a catalog built into each Ingot release, so the same commit always produces the same Dockerfile. * **Official images, maintained lines.** Builds use the official image of each language, such as `node:24-trixie-slim` or `python:3.14-slim-trixie` (FrankenPHP's for PHP). Images name a version line, not a patch release, so each new build picks up the line's latest security fixes. * **Dependencies from your lock file.** Installs hold to the lock file, as `npm ci` and frozen pnpm, Yarn and Bun installs do. * **Small, unprivileged images.** The final image has no compilers or build tools, runs as user `1000:1000` instead of root, and starts under `tini`. Build-time variables reach the build as a BuildKit secret, so they never land in an image layer. Your repository's own `Dockerfile` isn't used or changed: Ingot writes its files outside the repository. To build your own Dockerfile, use the [Dockerfile](/applications/builds/dockerfile) build strategy. ## Supported languages | Language | Package managers | Frameworks and tools | | - | - | - | | JavaScript and TypeScript (Node.js) | npm, pnpm, Yarn 1, Yarn 2 and later (Plug'n'Play included), Bun | Next.js, Nuxt, Astro, SvelteKit, React Router, Remix, TanStack Start, SolidStart, Qwik City, NestJS, AdonisJS, Strapi, Angular, Vite, Create React App, Expo web exports, Express, Fastify, Koa, Hono, Elysia, Puppeteer, Playwright, workspaces | | Python | pip, uv, Poetry, PDM, Pipenv, setuptools | Django, FastAPI, Flask, Starlette, Quart, Litestar, Sanic, FastHTML, Streamlit, Gradio, Dash, Celery, console scripts, packages run with `python -m`, uv workspaces | | PHP | Composer | Laravel, Symfony, Statamic, Drupal, Slim, CodeIgniter, CakePHP, Mezzio, plain PHP and WordPress, served by FrankenPHP | | Ruby | Bundler | Rails 7 and 8, Hanami, Roda, Sinatra, Rack | | Go | Go modules | Any `main` package, `cmd/` layouts, workspaces, vendoring, cgo | | Rust | Cargo | Any binary crate, workspaces, Leptos (built with cargo-leptos) | | Java | Maven, Gradle | Spring Boot, Quarkus, Micronaut, executable JARs, multi-module builds | | .NET | NuGet | ASP.NET Core, worker and console applications, in C#, F# or Visual Basic | | Elixir | Mix | Mix releases, Phoenix, Plug, umbrella projects | | Deno | `deno.json` | Tasks, `deno serve` applications, Fresh, Hono | | Gleam | Gleam | Erlang-target applications | | Zig | `build.zig` | Executables | | C and C++ | CMake, Meson, Make | Executables | | Static sites | None | An `index.html` in the build path or in `public/`, `dist/`, `build/` or `site/` | | Shell | None | A `start.sh` script | Ingot tries the languages in a fixed order and builds with the first one that recognizes the application. If it detects the wrong one, set `INGOT_PROVIDER` (see [Configure the build](#configure-the-build)). If it recognizes none, the build fails; use a [Dockerfile](/applications/builds/dockerfile) instead. ## Use Ingot **1. Open the build strategy** In the sidebar, click **Applications**, then click the application. On the **Settings** tab, in the **Build strategy** section, click **Update build strategy**. **2. Choose Ingot** Click **Ingot** (the first option). Set the **Build path** if the application isn't at the repository root. For a workspace in a monorepo, leave it at `.` and read [Build an application in a monorepo](#build-an-application-in-a-monorepo). **3. Save and deploy** Click **Update build strategy**, then deploy the application. ![The Update build strategy sheet with Ingot selected first, Cache enabled and the build path set to the repository root](https://assets.sevalla.com/screenshots/light/app-settings-build-strategy-ingot.png) The **Builder** row in the **Build strategy** section shows **Ingot**, and the next deployment's build log shows Ingot's build plan. ## Read the build plan Before it builds, Ingot prints its plan in the build log: what it detected, the file each decision came from, and the image it builds. For a Node.js application with a `package-lock.json` and no Node.js version set: ```text Build log theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} ╭─ ■ Node.js 24 application ───────────────────────────────╮ │ Node.js 24 default │ │ Package manager npm package-lock.json │ │ Start node app.js package.json scripts.start │ ├─ Image ──────────────────────────────────────────────────┤ │ Build node:24-trixie │ │ Runtime node:24-trixie-slim │ │ User 1000:1000 │ │ Init tini │ │ Port $PORT, default 8080 │ ╰─────────────────────────────────────────── Ingot v0.5.0 ─╯ ``` * The rows at the top are the decisions, each with its source: a file (`package-lock.json`), a field in it (`package.json scripts.start`), a variable you set, or `default` when nothing in the repository decided it. * The **Image** rows are the image Ingot builds in and the image the application runs in, the user it runs as, its init process and its port. * The last line names the Ingot version Sevalla ran. Lines that start with `!` after the plan are warnings: the build continues, but something deserves a look. For example, `composer.lock is missing, so Composer chooses dependency versions during the build; commit composer.lock to deploy what you tested`. When Ingot can't plan the build, the build log shows a line starting with `✗` and what to do about it on the next line, and the deployment fails. For example: ```text Build log theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} ✗ No start command found Add a main.py or app.py, a Procfile with a web process, or set "start" in ingot.json. ``` ## See the Dockerfile Ingot generated Sevalla keeps every Dockerfile Ingot generates, with its `.dockerignore`. On a deployment's page, the **Dockerfile** tab (next to **Build log**) shows the Dockerfile the deployment's image was built from and its version. When it differs from the previous deployment's, it's marked **Changed** and **Changes** shows what changed. Click **Full file** to read it whole, or **History** to open the application's [Dockerfile history](/applications/builds/overview#dockerfile-history) and compare any two versions. The tab fills in when the build is done. A new Ingot release can change the Dockerfile without a change to your code: each version shows the Ingot version that generated it. ![A deployment's Dockerfile tab with version 4 marked Changed and three lines added since version 3](https://assets.sevalla.com/screenshots/light/app-deployments-detail-dockerfile.png) ## Set the language version Ingot takes the version from the first source in this order: 1. `INGOT__VERSION`, such as `INGOT_NODE_VERSION`, set as an [environment variable](/applications/environment-variables) marked **Available during buildtime**. 2. `versions` in [ingot.json](#configure-the-build), such as `"versions": { "node": "22" }`. 3. The files in this table, in the order listed. 4. The default line of the Ingot release Sevalla runs. The plan shows `default` as the source. | Language | Variable | Files, in order | Default in Ingot 0.5.0 | Oldest line | | - | - | - | - | - | | Node.js | `INGOT_NODE_VERSION` | `.node-version`, `.nvmrc`, `.tool-versions`, mise's configuration; then `devEngines.runtime` and `engines.node` in `package.json` | 24 | 14 | | Bun | `INGOT_BUN_VERSION` | `packageManager` (`bun@1.3.0`), `devEngines.packageManager` or `engines.bun` in `package.json` | 1 | 1 | | Python | `INGOT_PYTHON_VERSION` | `.python-version`, `.tool-versions`, mise's configuration; `runtime.txt`; `requires-python` in `pyproject.toml` (or Poetry's `python` dependency); `python_version` in the `Pipfile` | 3.14 | 3.7 | | PHP | `INGOT_PHP_VERSION` | `config.platform.php` in `composer.json`, then `require.php` | 8.5 | 8.2 | | Ruby | `INGOT_RUBY_VERSION` | The `ruby` line in the `Gemfile`, `RUBY VERSION` in `Gemfile.lock`, `.ruby-version`, `.tool-versions`, mise's configuration | 4.0 | 2.7 | | Go | `INGOT_GO_VERSION` | The `toolchain` line, then the `go` line, of `go.work` or `go.mod` | 1.27 | 1.20 | | Rust | `INGOT_RUST_VERSION` | `rust-toolchain.toml` or `rust-toolchain`, then `rust-version` in `Cargo.toml` | 1.99 | 1.75 | | Java | `INGOT_JAVA_VERSION` | A Gradle toolchain, `.java-version`, `.sdkmanrc`, `.tool-versions`, mise's configuration, then the release your Maven or Gradle build compiles for | 25 | 8 | | .NET | `INGOT_DOTNET_VERSION` | `sdk.version` in `global.json`, then `TargetFramework` in the project files | 10 | 8 | | Elixir | `INGOT_ELIXIR_VERSION` | `.tool-versions`, mise's configuration, then `elixir` in `mix.exs` | 1.20 | 1.14 | | Deno | `INGOT_DENO_VERSION` | `.dvmrc` or `.deno-version`, `.tool-versions`, mise's configuration | 2.9 | 2.1 | | Gleam | `INGOT_GLEAM_VERSION` | `.tool-versions`, mise's configuration, then `gleam` in `gleam.toml` | 1 | 1 | | Zig | `INGOT_ZIG_VERSION` | `.tool-versions`, mise's configuration, then `minimum_zig_version` in `build.zig.zon` | 0.17 | 0.13 | Version files are read from the build path, then from each folder above it up to the repository root, the nearest first, as version managers read them. Write versions the way each ecosystem does: `22` or `^22` for Node.js, `>=3.12` for Python, `~8.3.0` for PHP. How Ingot treats the version you set: * **A line follows its patch releases.** `22` or `3.12` builds on the line's image tag, such as `node:22-trixie-slim`, which moves to each new patch release, so rebuilding picks up security fixes. * **An exact release stays on that release.** `22.11.0` or `python-3.12.8` builds on that release only, with a warning that its image won't get security rebuilds. If the catalog has no image for that patch release, such as `python-3.8.10`, Ingot builds on the newest patch release of the same minor release and warns about it. * **End-of-life lines still build, with a warning.** Ranges such as `>=18` prefer maintained lines. * **A version nothing satisfies fails the build.** Ingot doesn't fall back to another line. The error names the newest version the release knows, for example `no python version in this Ingot release satisfies ">=3.16" (newest known: 3.15.2)`. For PHP, Ingot also picks a version every package in `composer.lock` supports, and says which package limited it. For Python with no version set, if `requirements.txt` pins a release that has no Linux wheels for the default Python, such as `psycopg2-binary==2.9.10` on 3.14, Ingot builds on the newest Python line those pins have wheels for and says which pin chose it. ## Configure the build Most applications build with no configuration. To override what Ingot detects, add an `ingot.json` file to the build path. Comments are allowed: ```json ingot.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { // Build on Node.js 22 instead of the default line "versions": { "node": "22" }, "build": "npm run build:production", "start": "node dist/server.js", "packages": { "run": ["ffmpeg"] } } ``` Each field has an environment variable. The variable wins over the file. Ingot reads only variables whose names start with `INGOT_` and that are marked **Available during buildtime**. | `ingot.json` field | Environment variable | What it does | | - | - | - | | `app` | `INGOT_APP` | The application's folder in a monorepo, relative to the build path, such as `apps/web`. In `ingot.json`, read only from the file at the build path. See [Build an application in a monorepo](#build-an-application-in-a-monorepo). | | `provider` | `INGOT_PROVIDER` | The language to build with instead of detecting one: `golang`, `rust`, `elixir`, `java`, `dotnet`, `deno`, `gleam`, `zig`, `ruby`, `php`, `python`, `node`, `cpp`, `static` or `shell` | | `versions` | `INGOT__VERSION` | The version per language, such as `"versions": { "python": "3.13" }` or `INGOT_PYTHON_VERSION=3.13`. See [Set the language version](#set-the-language-version). | | `install` | `INGOT_INSTALL_CMD` | Replaces the command that installs dependencies | | `build` | `INGOT_BUILD_CMD` | Replaces the build command | | `start` | `INGOT_START_CMD` | Replaces the start command | | `packages.build` | `INGOT_BUILD_PACKAGES` | Debian packages to install while building, for example `libvips-dev`. In the variable, separate them with spaces. | | `packages.run` | `INGOT_RUN_PACKAGES` | Debian packages to install in the final image, for example `ffmpeg`. In the variable, separate them with spaces. | Commands in `install` and `build` run with `/bin/sh` in the build image, with your build-time variables set. ### Set the start command Ingot takes the start command from the first of these: 1. The web process's start command on the [Processes](/applications/processes) tab. Sevalla passes it to Ingot as `INGOT_START_CMD`, so it also wins over an `INGOT_START_CMD` variable you set. 2. An `INGOT_START_CMD` environment variable. 3. `start` in `ingot.json`. 4. The `web` entry of a `Procfile` in the build path. 5. What Ingot detects: the framework's production server (for example Gunicorn for Django and Flask, Uvicorn for FastAPI, FrankenPHP for PHP), or the `start` script in `package.json`. The start command runs with `/bin/sh`, from the application's folder in `/app`, as user `1000:1000`. When the application has nothing that serves HTTP and the `Procfile` has a single other process, such as `worker: python bot.py`, Ingot runs that process and warns that you should deploy the application as a [background worker](/applications/processes#background-workers). ## Build an application in a monorepo There are two ways to build one application of a repository that holds several. Use the one that matches how the application installs its dependencies. | The application | Build path | `INGOT_APP` | Why | | - | - | - | - | | Stands alone in its folder, with its own lock file | The application's folder, such as `apps/billing` | Not set | Ingot sees only that folder, like a repository of its own | | Is a package in a workspace (npm, pnpm, Yarn or Bun workspaces, a uv workspace, a `go.work`) that installs from the lock file at the root | `.` | The application's folder, such as `apps/web` | The build needs the root's lock file and the shared packages the application depends on | With `INGOT_APP`, Ingot installs the workspace's dependencies at the root with its lock file, builds the application and the workspace packages it depends on (with Turborepo or Nx when the workspace uses them), and starts the application from its own folder. An `ingot.json` in the application's folder configures that application on top of the root's. Create one Sevalla application per application in the repository, each with its own `INGOT_APP`. ## Environment variables during the build The build gets every environment variable marked **Available during buildtime**, and the [variables Sevalla sets](/applications/environment-variables#variables-sevalla-sets), such as `SVL_DEPLOYMENT_COMMIT_SHA`. Sevalla passes them to the Docker build as a BuildKit secret named `ingot_env`, and the generated Dockerfile reads it in the steps that install dependencies and build the application. * Variables never land in an image layer or the image's history. The running application gets its variables from Sevalla at runtime, not from the image. * Only variables whose names are valid shell names reach the build: letters, digits and underscores, not starting with a digit. A variable such as `spring.profiles.active` is left out of the build, but still set at runtime. * `PORT` isn't set during the build, only at runtime. Variables that are only **Available during runtime** don't reach the build. If your framework reads a variable while it builds, for example `NEXT_PUBLIC_*` in Next.js or `VITE_*` in Vite, mark it **Available during buildtime** and deploy again after you change it. ## The image Ingot builds | What | Value | What it means for you | | - | - | - | | Port | `PORT`, default `8080` | Sevalla sets `PORT` to the web process's port. Ingot's images make the server listen on it, on all interfaces. | | User | `1000:1000` | The application doesn't run as root. It can write to `/app` and to `/tmp`; it can't install packages at runtime. Add system packages with `packages.run` instead. | | Application folder | `/app` | Your code and its dependencies. Static sites are served from `/srv`. Use these paths for [disks](/applications/disks). | | Init process | `tini` | Passes stop signals to the application, so it shuts down cleanly on deployments, and reaps orphaned processes | | Base | Debian 13 (trixie); Alpine for static sites | Older language lines and some dependencies, such as Playwright before 1.55, build on Debian 12 (bookworm) or 11 (bullseye). The plan shows the image. | | Shell | `/bin/sh` | The [web terminal](/applications/web-terminal) and start commands set on the **Processes** tab work | Ingot's `.dockerignore` keeps files the image doesn't need out of the build, such as `.git`, `node_modules`, logs, editor folders and `.env.local`, plus every pattern in your own `.dockerignore`. ## Run workers and jobs Ingot builds one image for the application. Sevalla runs its start command as the web process; every other process runs from the same image with its own start command. Create them on the [Processes](/applications/processes) tab, for example: | Framework | Process | Start command | | - | - | - | | Laravel | Background worker | `exec php artisan queue:work` | | Laravel | Job, **Before deployment** | `php artisan migrate --force` | | Rails | Job, **Before deployment** | `bin/rails db:prepare` | | Rails with Sidekiq | Background worker | `exec bundle exec sidekiq` | | Django | Job, **Before deployment** | `python manage.py migrate --noinput` | | Celery | Background worker | `exec celery -A worker --loglevel INFO` | Start a background worker's command with `exec`: Sevalla runs a custom start command with `/bin/sh -l -c`, and `exec` replaces the shell with the worker, so the worker itself gets `SIGTERM` when an instance stops (see [How processes run](/applications/processes#how-processes-run)). Ingot doesn't create processes, and doesn't run a `Procfile`'s `release` entry. [Get Dockerfile](https://api-docs.sevalla.com/v3/applications/get-dockerfile) returns the processes Ingot recommends for the application in `processes`, such as a queue worker or a migration job; create the ones you need. ## Build cache With **Cache enabled**, Sevalla stores the build's layers in the application's registry and reuses them on the next build. A step whose inputs didn't change, such as installing dependencies from an unchanged lock file, comes from the cache. The steps that build your application run on every deployment, because they read the build-time variables, which include the deployment's own `SVL_*` variables. To force a clean build, [redeploy without the build cache](/applications/builds/overview#build-cache). ## Move to Ingot Ingot builds most applications from the same repository with no changes. It doesn't read `nixpacks.toml`, `railpack.json`, `project.toml` or `NIXPACKS_*` and `RAILPACK_*` variables. Before you switch a production application: 1. Pin your language version in the repository, for example with `engines.node`, `.python-version` or `require.php`, so it doesn't depend on any builder's default. 2. Translate the settings you rely on: | You set | With Ingot | | - | - | | `NIXPACKS_NODE_VERSION`, `RAILPACK_NODE_VERSION` | `INGOT_NODE_VERSION`, or the version files in [Set the language version](#set-the-language-version) | | `NIXPACKS_INSTALL_CMD`, `RAILPACK_INSTALL_CMD` | `INGOT_INSTALL_CMD` or `install` in `ingot.json` | | `NIXPACKS_BUILD_CMD`, `RAILPACK_BUILD_CMD` | `INGOT_BUILD_CMD` or `build` in `ingot.json` | | `NIXPACKS_START_CMD`, `RAILPACK_START_CMD` | The web process's start command, `INGOT_START_CMD` or `start` in `ingot.json` | | `NIXPACKS_APT_PKGS`, `RAILPACK_DEPLOY_APT_PACKAGES` | `INGOT_RUN_PACKAGES` or `packages.run` in `ingot.json` | | `RAILPACK_BUILD_APT_PACKAGES` | `INGOT_BUILD_PACKAGES` or `packages.build` in `ingot.json` | 3. Check what your application writes to disk while it runs. It runs as user `1000:1000`, not root: it can write to `/app` and `/tmp`. 4. Switch a staging copy first, or watch the first deployment's build log. If it fails, switch back and deploy again. ## Troubleshoot Ingot builds Ingot's messages in the build log say what failed and how to fix it. The common ones: | Build log | Cause | Fix | | - | - | - | | `No start command found` | Nothing in the build path tells Ingot how to start the application | Set the web process's start command, `INGOT_START_CMD`, `start` in `ingot.json`, or a `web` entry in a `Procfile` | | `no version in this Ingot release satisfies ""` | The version you set is newer than every line Ingot knows, or older than the oldest one | Set a version in the range of [Set the language version](#set-the-language-version) | | ` has no image in this Ingot release` | An exact release newer than the newest one Ingot knows | Set the line, such as `22` instead of `22.99.0` | | `Ingot couldn't find the application` | The framework is installed, but no file Ingot searches creates its application and there's no `main.py`, `app.py` or `server.py` to run | Create the application at the top level of `main.py` or `app.py`, or set the start command | | ` needs a production server, and isn't installed` | A Python framework without the server Ingot runs it with | Add the server, such as `gunicorn` or `uvicorn`, to your dependencies, or set the start command | | A permission error at runtime, such as `EACCES` or `Permission denied` | The application writes outside `/app` and `/tmp`, or needs root | Write to `/app` or `/tmp`, and install system packages with `packages.run` instead of at runtime | For anything else, [Troubleshoot builds and deployments](/applications/troubleshooting/builds-and-deployments) covers failures every builder shares. ## API and CLI | Task | API | CLI | | - | - | - | | Build with Ingot | [Update application](https://api-docs.sevalla.com/v3/applications/update-application) with `build_type` `ingot` (and `build_path`, `build_cache_enabled`) | `sevalla apps update --build-type ingot` | | Set an `INGOT_*` variable | [Create environment variable](https://api-docs.sevalla.com/v3/applications/create-environment-variable) (build-time by default) | `sevalla apps env-vars create --key INGOT_NODE_VERSION --value 22` | | Read the generated Dockerfiles | [List Dockerfiles](https://api-docs.sevalla.com/v3/applications/list-dockerfiles), [Get Dockerfile](https://api-docs.sevalla.com/v3/applications/get-dockerfile) | Not available | Each Dockerfile version in the API has `source` `ingot`, the `ingot_version` that generated it, and what Ingot detected: `language` (such as `node` or `php`), `facts` (the decisions of the build plan, each with its source) and `processes` (the processes it recommends). A deployment's `dockerfile_id` names the version its image was built from. # Nixpacks Source: https://docs.sevalla.com/applications/builds/nixpacks Build an application with Nixpacks, a deprecated build strategy that existing applications keep: supported languages, Nixpacks versions, language versions, nixpacks.toml, NIXPACKS_ variables and the start command. Nixpacks is an open-source builder from Railway that detects your application's language and framework from the repository and builds a container image with no configuration. On Sevalla, Nixpacks is deprecated: new applications from Git build with [Ingot](/applications/builds/ingot), and applications that build with Nixpacks keep building with it until you change their build strategy. The Nixpacks project is in maintenance mode. To switch, see [Move to Ingot](/applications/builds/ingot#move-to-ingot). ## How Nixpacks builds your application Nixpacks reads the files in the [build path](/applications/builds/overview#build-settings) to pick a provider (for example `package.json` for Node.js or `requirements.txt` for Python), then builds in four phases, which the build log prints as a table: | Phase | What it does | Example for Node.js | | - | - | - | | `setup` | Installs the language and system packages | `nodejs_22`, `npm-10_x` | | `install` | Installs dependencies | `npm ci` | | `build` | Runs the build script | `npm run build` | | `start` | The command the container starts with | `npm start` | If the web process has a start command on the [Processes](/applications/processes) tab, Sevalla passes it to Nixpacks and runs it instead of the detected `start` command. ## Supported languages Nixpacks detects Clojure, Cobol, Crystal, C#/.NET, Dart, Deno, Elixir, F#, Gleam, Go, Haskell, Java, Lunatic, Node.js (with npm, Yarn, pnpm or Bun), PHP, Python, Ruby, Rust, Scala, Scheme, Swift, Zig, and static files. The [Nixpacks providers documentation](https://nixpacks.com/docs/providers) describes how each is detected and built. For anything else, use a [Dockerfile](/applications/builds/dockerfile). ## Use Nixpacks **1. Open the build strategy** In the sidebar, click **Applications**, then click the application. On the **Settings** tab, in the **Build strategy** section, click **Update build strategy**. **2. Choose Nixpacks** Click **Nixpacks**. Set the **Build path** if the application isn't at the repository root, and choose the **Nixpacks version**. **3. Save and deploy** Click **Update build strategy**, then deploy the application. The deployment's build log starts with a `Nixpacks v1.41.0` table (or the version you chose) listing the four phases. ## Nixpacks version | Version | Notes | | - | - | | **1.41** | The default for new applications | | **1.39** | | | **1.29** | Applications without a saved version build with 1.29 | Newer versions add language versions and change defaults, so a version change can change how your application builds. Read the [Nixpacks release notes](https://github.com/railwayapp/nixpacks/releases) before you switch, and pin your language version in the repository so the build doesn't depend on Nixpacks' default. ## Set the language version Without a version in your repository, Nixpacks uses its own default for the language, which depends on the Nixpacks version. Set the version in your files, or with an [environment variable](/applications/environment-variables) marked **Available during buildtime**. | Language | Set the version with | | - | - | | Node.js | `engines.node` in `package.json` (for example `"22"`), an `.nvmrc` file, or `NIXPACKS_NODE_VERSION`. Only a major version: `22` or `22.x`. | | Python | `NIXPACKS_PYTHON_VERSION`, a `.python-version` file (`3.12`), a `runtime.txt` file (`python-3.12`), `python_version` in the `Pipfile`, or `.tool-versions`. Nixpacks 1.41 supports Python 3.7 to 3.13. | | PHP | `require.php` in `composer.json`, for example `"php": "8.3"`. PHP 8.1 or later. | | Go | The `go` directive in `go.mod`, for example `go 1.23` | | Ruby | A `.ruby-version` file, or the `ruby` line in the `Gemfile` | | Java | `NIXPACKS_JDK_VERSION`, and `NIXPACKS_GRADLE_VERSION` for Gradle | ```json package.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "engines": { "node": "22" } } ``` Nixpacks 1.41 installs Python 3.12 when the repository doesn't set a version. It doesn't fail on a version it doesn't support, such as 3.14: it builds with Python 3.12 instead, so check the `setup` phase in the build log. For Python 3.14, use [Railpack](/applications/builds/railpack) or a [Dockerfile](/applications/builds/dockerfile). PHP extensions come from `composer.json` too: add them to `require`, for example `"ext-redis": "*"` or `"ext-imagick": "*"`. Python dependencies and their versions come from your dependency file (`requirements.txt`, `poetry.lock`, `uv.lock`, `Pipfile` and others); set `NIXPACKS_PYTHON_PACKAGE_MANAGER` to force one. ## Configure the build Most applications build with no configuration. To change a phase, add a `nixpacks.toml` file to the build path: ```toml nixpacks.toml theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} [phases.setup] nixPkgs = ["...", "ffmpeg"] aptPkgs = ["...", "libvips"] [phases.build] cmds = ["npm run build:server"] [start] cmd = "node dist/server.js" ``` `"..."` keeps the packages Nixpacks detects and adds yours. The [Nixpacks configuration file reference](https://nixpacks.com/docs/configuration/file) lists every key. The same settings work as environment variables marked **Available during buildtime**: | Variable | What it does | | - | - | | `NIXPACKS_INSTALL_CMD` | Replaces the install command | | `NIXPACKS_BUILD_CMD` | Replaces the build command | | `NIXPACKS_START_CMD` | Replaces the start command | | `NIXPACKS_PKGS` | Adds Nix packages | | `NIXPACKS_APT_PKGS` | Adds apt packages, separated by commas | | `NIXPACKS_LIBS` | Adds Nix libraries | | `NIXPACKS_INSTALL_CACHE_DIRS` | Adds directories to cache in the install phase | | `NIXPACKS_BUILD_CACHE_DIRS` | Adds directories to cache in the build phase | | `NIXPACKS_NO_CACHE` | Turns off Nixpacks' own caching for the build | | `NIXPACKS_CONFIG_FILE` | Reads the configuration from another file, relative to the build path | A start command set on the web process wins over `nixpacks.toml` and `NIXPACKS_START_CMD`. Define other processes, such as workers, on the [Processes](/applications/processes) tab. ## Procfile Nixpacks reads a `Procfile` in the build path. Its `web` entry (or `worker`, or else the first entry) becomes the image's start command; a start command on the web process still wins. Sevalla doesn't create processes from the other entries: create them on the [Processes](/applications/processes) tab. A `release` entry runs once, as the last step of the build, not before each deployment. It doesn't run on restarts, rollbacks or promotions, and it gets only the variables available during the build. For release tasks such as database migrations, remove the `release` entry and create a [job](/applications/processes#jobs) with the start policy **Before deployment**. ## Frequently asked questions > [accordion] Can I run Composer? > > Yes. When the repository has a `composer.json`, Nixpacks installs PHP and runs Composer to install its dependencies. Declare PHP extensions in the same file's `require` section. > [accordion] How do I pin a Python package version? > > In your dependency file, for example `Django==5.1` in `requirements.txt`. Set the Python version itself with a `.python-version` file. > [accordion] My language isn't detected > > Check the **Build path**: Nixpacks looks for the language's files in that folder, not in the repository root. If the language isn't supported, switch to [Railpack](/applications/builds/railpack) or a [Dockerfile](/applications/builds/dockerfile). # Builds Source: https://docs.sevalla.com/applications/builds/overview How Sevalla builds an application from Git: choosing Ingot, Nixpacks, Railpack, Buildpacks or a Dockerfile, build path, cache, build-time variables, build machine, time limit, logs and Dockerfile history. A build turns an application's Git repository into a container image. Sevalla builds on every deployment from a Git source (except restarts, rollbacks and promotions, which reuse an image), with the application's build strategy: Ingot, Nixpacks, Railpack, Buildpacks or a Dockerfile. Applications deployed from a [Docker image](/applications/docker-images) aren't built. ## How a build works 1. Sevalla clones the repository at the deployment's commit, with its submodules and, unless you turned it off, its [Git LFS](/applications/settings#git-lfs) files. 2. The builder runs in the [build path](#build-settings) (or the Docker context) on a build machine, with the [build-time environment variables](#environment-variables-during-the-build) and, when it's on, the [build cache](#build-cache). 3. Sevalla pushes the image to the application's private registry, then rolls it out to every process. See [Deployments](/applications/deployments). Everything the build prints is in the deployment's **Build log**, on its page on the **Deployments** tab. ## Choose a build strategy New applications from Git build with Ingot. Change the strategy when your language isn't detected, when you're moving from a platform that uses another builder, or when you need full control. | Build strategy | How it builds | Configure it with | Choose it when | | - | - | - | - | | [Ingot](/applications/builds/ingot) (default) | Sevalla's own builder: detects the language and framework, generates a Dockerfile and builds it with BuildKit | `ingot.json`, `INGOT_*` variables | Most applications: the same build for the same commit, on official language images, running as a non-root user | | [Nixpacks](/applications/builds/nixpacks) (deprecated) | Detects the language and framework, installs dependencies with Nix packages | `nixpacks.toml`, `NIXPACKS_*` variables | The application already builds with it. [Move to Ingot](/applications/builds/ingot#move-to-ingot) when you can | | [Railpack](/applications/builds/railpack) (**Beta**) | Detects the language and framework, builds with BuildKit | `railpack.json`, `RAILPACK_*` variables | You want the actively developed successor to Nixpacks, which is in maintenance mode | | [Buildpacks](/applications/builds/buildpacks) | Runs Heroku's Cloud Native Buildpacks | `Procfile`, the buildpack list, language files | You come from Heroku | | [Dockerfile](/applications/builds/dockerfile) | Builds the Dockerfile in your repository | Your `Dockerfile` | You need system packages, a language no builder detects, or full control | With Ingot, Nixpacks, Railpack and Buildpacks, the web process's start command (on the [Processes](/applications/processes) tab) overrides the start command the builder detects. Leave it empty to use the detected one. ## Update the build strategy > [!NOTE] > > You need permission to update the application. The build strategy applies to Git sources only. **1. Open the build strategy** In the sidebar, click **Applications**, then click the application. On the **Settings** tab, in the **Build strategy** section, click **Update build strategy**. The same sheet opens from **Update build strategy** on the **Deployments** tab. **2. Choose the builder** Click **Ingot**, **Nixpacks**, **Railpack**, **Buildpacks** or **Dockerfile**, then fill in its settings. **3. Save** Click **Update build strategy**. **4. Deploy** The change takes effect with the next deployment. Click **Deploy** in the undeployed changes bar, or deploy from the **Deployments** tab. The new deployment's **Build** card and its build log show the builder it used. ![The Update build strategy sheet with Nixpacks selected, Cache enabled, the build path and the Nixpacks version](https://assets.sevalla.com/screenshots/light/app-settings-build-strategy-nixpacks.png) ## Build settings | Setting | Builders | What it does | Default | | - | - | - | - | | Build type | All | **Ingot**, **Nixpacks**, **Railpack**, **Buildpacks** or **Dockerfile** | **Ingot** | | **Cache enabled** | All | Reuses layers of the latest image of a successful deployment. See [Build cache](#build-cache). | On | | **Build path** | Ingot, Nixpacks, Railpack, Buildpacks | The folder to build from, relative to the repository root, for example `apps/storefront` in a monorepo. `.` is the root. | `.` | | **Nixpacks version** | Nixpacks | **1.41**, **1.39** or **1.29** | **1.41** | | **Pack builder** | Buildpacks | **heroku/builder:24** or **heroku/builder:22** (deprecated by Heroku) | **heroku/builder:22** for new applications; choose **heroku/builder:24** | | **Add buildpack** | Buildpacks | Buildpacks to run, in order | None | | **Dockerfile path** | Dockerfile | The Dockerfile, relative to the repository root | `Dockerfile` | | **Docker context** | Dockerfile | The folder sent to the build, relative to the repository root | `.` | | **Docker registry credential** | Dockerfile | A [registry credential](/applications/docker-images#add-a-registry-credential) to pull private base images | **None (public images only)** | Paths can use letters, digits, `.`, `_`, `-`, `/` and `\`, up to 400 characters. Otherwise the sheet shows `Path contains invalid characters.` or `Must be at most 400 characters`. ## Build cache With **Cache enabled**, each build starts from the image of the application's latest successful deployment: steps whose inputs didn't change, such as installing unchanged dependencies, are reused instead of run again. The first build of an application, and the first build after you turn the cache on, run in full. Turn the cache off to force a clean build, for example when a cached layer keeps a broken dependency. Clear **Cache enabled** in the **Update build strategy** sheet, deploy, then turn it back on. The **Build cache** row in the **Build strategy** section shows **Enabled** or **Disabled**. ## Environment variables during the build The build gets every [environment variable](/applications/environment-variables) marked **Available during buildtime**: the application's own and the company's [global variables](/applications/environment-variables#global-variables), with the application's value winning when both set the same key. New variables are available during both build and runtime by default. How each builder receives them: | Builder | How variables reach the build | | - | - | | Nixpacks | As build environment variables (`--env`), available to every build phase | | Railpack | As build environment variables and as BuildKit secrets | | Buildpacks | As build environment variables (`--env`) | | Dockerfile | As build arguments (`--build-arg`): declare each one with `ARG` in the Dockerfile to use it | | Ingot | As a BuildKit secret that the generated Dockerfile reads, so they never land in the image. Only names that are valid shell names (letters, digits and underscores) reach the build. | A variable changed after a build isn't in that build's image. If your framework inlines variables into the bundle at build time (for example `NEXT_PUBLIC_*` in Next.js or `VITE_*` in Vite), deploy with a new build after you change them, not a restart. Avoid `$` in build-time values: the build shell can expand it. See [Special characters](/applications/environment-variables#special-characters). Sevalla also sets its own `SVL_*` variables during the build, such as `SVL_APP_ID`, `SVL_DEPLOYMENT_ID`, `SVL_DEPLOYMENT_COMMIT_SHA` and `SVL_DEPLOYMENT_BRANCH`. It doesn't set `PORT` during the build, only at runtime. See [Variables Sevalla sets](/applications/environment-variables#variables-sevalla-sets). ## Build machine Every build runs on a build machine with 4 vCPU and 8 GB of memory. The **Build resources** row in the **Build strategy** section shows it; you can't change it in the dashboard. Build time is billed per minute; see [Pricing](/billing/pricing). ## Time limit A deployment has 30 minutes to clone, build and roll out. If it runs longer, it fails; see [Time limits and failures](/applications/deployments#time-limits-and-failures). To make builds faster, keep the [build cache](#build-cache) on, build only the folder you need with the **Build path**, and exclude files the build doesn't need (for example with `.dockerignore` for a Dockerfile). ## Read the build log On the application's **Deployments** tab, click the deployment, then the **Build log** tab. The log streams while the build runs and stays with the deployment afterwards. A failed build ends with the error that stopped it; [Troubleshoot builds and deployments](/applications/troubleshooting/builds-and-deployments) explains the common ones. ## Dockerfile history Applications that build with Ingot or a Dockerfile keep a history of every Dockerfile they were built from: the one Ingot generated, or the one Sevalla read from your repository, each with its `.dockerignore`. It shows which Dockerfile is running and what changed between two builds, for example a system package Ingot added for a new dependency. **1. Open the application** In the sidebar, click **Applications**, then click the application. **2. Open the history** On the **Deployments** tab, next to **Dockerfile**, click **History**. The **Build strategy** section of the **Settings** tab and a deployment's **Dockerfile** tab have the same link. **3. Compare versions** Click a version in the list. It opens on its **Changes** from the version before it. Pick another version in **Compare with** to compare with that one, or click **Full file** to read the whole file. The **Dockerfile** and **.dockerignore** tabs switch between the two files. The version that's running is marked **Active**. Each version shows where it came from: the Ingot version that generated it (such as **Ingot v0.4.0**) or **Your repository**. When two versions came from different Ingot versions, part of the change can come from the Ingot upgrade, not from your code. ![The Dockerfile history sheet with four versions, version 4 active, and its Dockerfile changes against version 3](https://assets.sevalla.com/screenshots/light/app-deployments-dockerfile-history.png) ### How Sevalla records versions * A build adds a version only when its Dockerfile, its `.dockerignore` or their source (Ingot or your repository) differs from the latest version. Otherwise the deployment reuses the latest version. Versions are numbered from 1 for each application. * The **Active** version is the one the latest successful deployment was built from. Restarts, rollbacks and promotions reuse an image, so they reuse its version. A promotion copies the version into the target application's own history. * A build that fails after the Dockerfile was generated or read still adds its version, so you can see what broke the build. That version never becomes active. * For a Dockerfile build, Sevalla records the file at the **Dockerfile path** and the `.dockerignore` Docker uses: `.dockerignore` next to the Dockerfile, or else `.dockerignore` in the Docker context. * Nixpacks, Railpack and Buildpacks builds and Docker image sources record nothing. An application that switches to one of them keeps its history: the **Build strategy** section shows **Dockerfile history** with the number of versions kept from earlier builds. * Cloning an application doesn't copy its history. ## API and CLI | Task | API | CLI | | - | - | - | | Read the build strategy | [Get application](https://api-docs.sevalla.com/v3/applications/get-application) | `sevalla apps get ` | | Update the build strategy | [Update application](https://api-docs.sevalla.com/v3/applications/update-application) (`build_type`, `build_path`, `build_cache_enabled`, `nixpacks_version`, `pack_builder`, `buildpacks`, `dockerfile_path`, `docker_context`, `docker_registry_credential_id`) | `sevalla apps update --build-type ` (also `--dockerfile-path`) | | Read a build log | [Get application deployment logs](https://api-docs.sevalla.com/v3/applications/get-application-deployment-logs) | `sevalla apps deployments logs --app-id ` | | Read the Dockerfile history | [List Dockerfiles](https://api-docs.sevalla.com/v3/applications/list-dockerfiles), [Get Dockerfile](https://api-docs.sevalla.com/v3/applications/get-dockerfile) | Not available | In the API, `build_type` is `ingot`, `dockerfile`, `railpack`, `pack` (Buildpacks) or `nixpacks` (deprecated). A Dockerfile version's `source` is `ingot` or `user` (your repository), and a deployment's `dockerfile_id` names the version its image was built from. # Railpack Source: https://docs.sevalla.com/applications/builds/railpack Build an application with Railpack, the beta successor to Nixpacks: supported languages, language versions, railpack.json, RAILPACK_ variables and the start command. Railpack is the open-source successor to Nixpacks from Railway: it detects your application's language and framework from the repository and builds a container image with BuildKit, with no configuration. On Sevalla, Railpack is in beta (the dashboard labels it **Beta**) and builds with Railpack 0.30.0. New applications default to [Ingot](/applications/builds/ingot). ## How Railpack builds your application Railpack reads the files in the [build path](/applications/builds/overview#build-settings) to detect the language, installs the language versions it needs with [Mise](https://mise.jdx.dev/), and builds in steps (install, build) before setting the start command. Sevalla doesn't let you pick a Railpack version: every application uses the one Sevalla runs. If the web process has a start command on the [Processes](/applications/processes) tab, Sevalla passes it to Railpack as `RAILPACK_START_CMD` and runs it instead of the detected one. ## Supported languages Railpack detects Node.js (with npm, Yarn, pnpm or Bun), Python, Go, PHP, Java, Ruby, .NET, Deno, Rust and Elixir, among others. The [Railpack documentation](https://railpack.com/) describes each language. For anything it doesn't detect, use a [Dockerfile](/applications/builds/dockerfile). ## Use Railpack **1. Open the build strategy** In the sidebar, click **Applications**, then click the application. On the **Settings** tab, in the **Build strategy** section, click **Update build strategy**. **2. Choose Railpack** Click **Railpack**. Set the **Build path** if the application isn't at the repository root. **3. Save and deploy** Click **Update build strategy**, then deploy the application. The **Builder** in the **Build strategy** section shows **Railpack** with the **Beta** label, and the next deployment's build log shows Railpack's build plan. ## Set the language version Without a version in your repository, Railpack uses its own default for the language. Railpack reads Mise version files (`.tool-versions`, `mise.toml`) for most languages, and the files in this table. Environment variables must be marked **Available during buildtime**. | Language | Set the version with | | - | - | | Node.js | `RAILPACK_NODE_VERSION`, `engines.node` in `package.json`, an `.nvmrc` or `.node-version` file. For Bun: `engines.bun` in `package.json`. | | Python | `RAILPACK_PYTHON_VERSION`, a `.python-version` file, a `runtime.txt` file, or the `Pipfile` | | PHP | `require.php` in `composer.json`. PHP 8.2 or later. | | Go | The `go` directive in `go.mod`, or `RAILPACK_GO_VERSION` | | Ruby | A `.ruby-version` file, the `ruby` line in the `Gemfile`, or `RAILPACK_RUBY_VERSION` | | Java | `RAILPACK_JDK_VERSION`, and `RAILPACK_GRADLE_VERSION` for Gradle | | .NET | `TargetFramework` in the `.csproj` file, `global.json`, or `RAILPACK_DOTNET_VERSION` | | Rust | `rust-toolchain.toml`, `rust-version` in `Cargo.toml`, or `RAILPACK_RUST_VERSION` | | Elixir | `.elixir-version`, `mix.exs`, or `RAILPACK_ELIXIR_VERSION` | Railpack detects the Node.js package manager from the `packageManager` field in `package.json`, then from the lock file, and falls back to npm. For Python it supports pip, Poetry, PDM, uv and Pipenv. For PHP extensions, set `RAILPACK_PHP_EXTENSIONS` (for example `gd,imagick,redis`) or require them in `composer.json`. ## Configure the build Most applications build with no configuration. To change a step, add a `railpack.json` file to the build path: ```json railpack.json theme={"theme":{"light":"github-dark-default","dark":"github-dark-default"}} { "$schema": "https://schema.railpack.com", "steps": { "install": { "commands": ["npm ci"] }, "build": { "inputs": [{ "step": "install" }], "commands": ["...", "npm run build:server"] } }, "deploy": { "startCommand": "node dist/server.js" } } ``` The `$schema` line gives you autocomplete and validation in your editor. The [Railpack configuration reference](https://railpack.com/config/file) lists every key. Environment variables marked **Available during buildtime** change the build too: | Variable | What it does | | - | - | | `RAILPACK_INSTALL_CMD` | Replaces the install step's command | | `RAILPACK_BUILD_CMD` | Replaces the build step's command | | `RAILPACK_START_CMD` | Replaces the start command (Sevalla sets it from the web process's start command when there is one) | | `RAILPACK_PACKAGES` | Adds Mise packages, as `pkg@version`, separated by spaces | | `RAILPACK_BUILD_APT_PACKAGES` | Adds apt packages during the build | | `RAILPACK_DEPLOY_APT_PACKAGES` | Adds apt packages to the final image | | `RAILPACK_DISABLE_CACHES` | Turns off Railpack's cache mounts (`*` for all) | Sevalla passes build-time variables to Railpack's build as BuildKit secrets. A start command set on the web process wins over `railpack.json` and `RAILPACK_START_CMD`. Railpack also takes the start command from a `Procfile`: its `web` entry, or else its `worker` entry. It doesn't run a `release` entry, and Sevalla doesn't create processes from the other entries. For release tasks such as database migrations, create a [job](/applications/processes#jobs) with the start policy **Before deployment**. ## Move from Nixpacks to Railpack Railpack builds from the same repository with no changes for most applications. Before you switch a production application: 1. Pin your language version in the repository (Railpack's defaults can differ from Nixpacks'), for example with `engines.node` or `.python-version`. 2. Translate any `nixpacks.toml` or `NIXPACKS_*` variables to `railpack.json` or `RAILPACK_*` variables. Railpack ignores Nixpacks' configuration. 3. Switch a staging copy first, or watch the first deployment's build log. If it fails, switch back to **Nixpacks** and deploy again. # CDN and edge caching Source: https://docs.sevalla.com/applications/caching Cache an application's static files and pages on Cloudflare's network: turn on the CDN or edge caching, see what gets cached and for how long, control it with headers, and purge the cache. Sevalla can cache an application's responses on Cloudflare's network, so visitors get them from a location near them instead of from your application. The **CDN** caches static files such as images, scripts and stylesheets. **Edge caching** also caches rendered pages and every other response that's safe to cache. Both are off by default, included at no extra cost, and work on every domain of the application, including its `sevalla.app` domain. ## How caching works Every request to the application's domains passes through Cloudflare. With the CDN or edge caching on, Cloudflare answers a `GET` request from its cache when it has a copy, and otherwise forwards it to your application and stores the response if it can. | | CDN only | Edge caching on | | - | - | - | | What can be cached | Requests for files with a [cached extension](#cached-file-extensions), such as `.css`, `.js`, `.png` or `.woff2` | Every `GET` request, including HTML pages and API responses | | Good for | Any application | Sites whose pages are the same for every visitor: marketing sites, blogs, documentation | > [!WARNING] > > Edge caching doesn't look at request cookies. A page that changes per user (a dashboard, a cart, a signed-in view) is served from the cache to everyone unless its response sets a cookie or sends `Cache-Control: private` or `no-store`. Don't turn on edge caching for highly dynamic applications without checking those headers. ### What is never cached Sevalla always forwards these requests to your application, with or without caching: * Requests with a method other than `GET`, such as `POST`, `PUT` and `DELETE`. * Requests with an `Authorization` header. * Range requests (a `Range` header), for example for video seeking, and WebSocket upgrades. * Responses with a status other than `200`, `301`, `302` or `303`. * Responses that set a cookie (`Set-Cookie`). For files with a cached extension, Sevalla first removes Cloudflare's own `__cf_bm` bot-management cookie, so those files can still be cached. ### How long responses stay cached If your response has a `Cache-Control` header, Sevalla leaves it as it is and Cloudflare follows it: `no-store` or `private` keeps the response out of the cache, and `s-maxage` or `max-age` sets how long it stays. If the response has no `Cache-Control` header, Sevalla adds one: | Response status | Kept for | | - | - | | `200` | 30 days | | `301` | 120 minutes | | `302`, `303` | 20 minutes | For HTML pages, the added header lets Cloudflare keep the page for that time but tells browsers to check again on every visit (`public, max-age=0, must-revalidate, s-maxage=