Skip to main content
This page documents the customer-facing settings surface for applications as implemented today.

Shared settings concepts

Most apps can store environment variables through app settings. Current environment-variable validation:
  • keys must be uppercase shell-style identifiers
  • each value has a maximum length
  • the total count is capped
If too many variables are sent, the API rejects the request. Editing variables:
  • Click a variable to edit it. Both the name and the value can be changed; renaming saves the new name and removes the old one in one step. A secret’s value cannot be read back, so renaming a secret asks for its value again.
  • .env editor shows all variables as a .env file. Change, add or remove lines and save: changed and new lines are saved and removed lines are deleted. Secrets are listed as comments without their values; write NAME=value to replace a secret, and delete secrets from the list.
  • Import .env reads a .env file into new rows for you to review before saving.

Settings by app type

React

Servbase controls key build settings for safety:
  • build command is restricted to supported values
  • publish directory defaults to dist
  • package manager is normalized

Python

Customer-editable settings currently focus on:
  • environment variables
  • runtime log enablement
  • Gunicorn worker count
  • optional Gunicorn worker class
Servbase intentionally auto-manages:
  • start command
  • root directory
  • publish directory

Node.js / Express.js

Current managed settings behavior includes:
  • framework-aware runtime handling for Node-style apps
  • platform-managed runtime behavior with a start command path
  • environment-variable support

Next.js

Current Next.js settings behavior includes:
  • nextjs_mode selection
  • ssr, csr, and ssg rendering modes
  • SSR using a runtime path
  • CSR and SSG using static build output behavior

PHP

PHP apps accept environment variables and have Web server settings instead of a build pipeline:
  • php_web_root: the folder your domain serves. Empty means the framework default (public/ for Laravel and CodeIgniter, otherwise the app folder), and . means the app folder.
  • php_static_dirs: up to 10 folders outside the web root that are served as static files at the same path, such as client for EspoCRM.
Both apply right away, without a redeploy. See Web root.

Object storage

Connect one of your workspace’s buckets to the app. Servbase creates an API key limited to that bucket and adds SERVBASE_STORAGE_ENDPOINT, SERVBASE_STORAGE_BUCKET, SERVBASE_STORAGE_KEY (secret) and, for public buckets, SERVBASE_STORAGE_PUBLIC_URL to the app’s variables. See Object storage for code examples.

Databases

Databases are connected from the Databases page, not from app settings: select the plug icon on a database and choose the app. See Connect a database to an app.

Runtime versions

  • php_version (PHP apps): 8.3, 8.4 or 8.5. Applies right away. See PHP version.
  • node_version (Node.js, Express.js, Next.js and React apps): 22, 24 or 26. Applies on the next rebuild.
  • node_options (the same apps): NODE_OPTIONS, limited to tuning and diagnostic flags. See Node.js version and options.
Every Servbase server offers the same versions, and an app is only placed on, or moved to, a server that has its version.

Persistent folders

persistent_dirs lists up to 10 folders (or files) inside the app that every rebuild, redeploy and re-clone from GitHub keeps from the running app, for example data, custom or public/uploads. Set them in the app’s Settings tab under Persistent folders; they apply from the next deploy.
  • On each deploy, the running app’s copy of a persistent folder replaces the repository’s copy. The first deploy uses the repository’s copy.
  • Files your app writes to a persistent folder while a deploy is running are kept too.
  • A persistent folder is removed only when you delete the app. Remove it from the list to let the next deploy replace it with the repository’s copy again.
  • PHP apps always keep .env, storage/, writable/ and vendor/, whether or not they are listed.

App logs

runtime_app_logs_enabled turns on the App Logs tab and the runtime log endpoints for Python, Node.js and PHP apps: the app’s output for runtime apps, and the PHP error log for PHP apps. See App logs.

Gunicorn options

Current Python Gunicorn settings are accepted only for supported frameworks:
  • Flask
  • Django
Worker caps by performance tier: If the user sends a value above the plan limit, the API rejects it with a plan-aware validation error.

Source-sensitive settings

For GitHub-sourced apps, branch updates remain part of the configuration surface. When rebuild is available for the app and the app is connected to GitHub, the customer-facing rebuild choice is between:
  • github
  • workspace