Deploy
Node.js and Python apps
Run Node.js and Python web apps as managed services behind the web server, with Git deploys.
Node.js and Python apps run as managed systemd services on a local port; the web server in front handles the domain, HTTPS and static files.
1. Install the runtime
In the server's web stack, Install Node.js (22, 24 or 26) or Install Python (3.12, 3.13 or 3.14). A site created or changed through the API, the CLI or a blueprint installs a missing runtime first and is applied once that install succeeds.
2. Add the site
Add site with Runs on: Node.js or Python, the version and the domain. Zefily assigns a free local port to the app.
3. Deploy the code
On the site's Deploy pane, set up a Git deploy with the Node.js or Python preset:
| Node.js | Python | |
|---|---|---|
| Build commands | npm ci, npm run build --if-present |
uv sync --frozen --no-dev |
| Start command | npm start |
uv run gunicorn --bind 127.0.0.1:$PORT app:app |
The Start command runs in the live release as the site user. Your app must listen on 127.0.0.1:$PORT; the environment also carries HOST=127.0.0.1, WEB_CONCURRENCY (worker processes sized for the server's cores and memory) and for Node.js NODE_ENV=production plus NODE_OPTIONS=--max-old-space-size=…, a heap ceiling per worker sized from the app's share of the memory. Python apps use uv with the managed Python version; for FastAPI or another ASGI app use for example uv run uvicorn main:app --host 127.0.0.1 --port $PORT --workers $WEB_CONCURRENCY.
The app restarts on every deploy; if it does not answer after a deploy, the site switches back to the previous release. A ZIP release (see Deploy from GitHub) takes the same build and start commands; its process is set up before the first ZIP release too.
Without a lock file. The Node.js preset runs npm ci only when the release has a package-lock.json; without one it runs npm install. The Python preset runs uv sync --frozen --no-dev only with a uv.lock; without one it runs uv sync --no-dev. A release with only a yarn.lock or pnpm-lock.yaml also installs with npm for now, so commit your lock file to keep exact versions. A Python project with only a requirements.txt (no pyproject.toml) is not installed by the Python preset, because uv sync needs a pyproject.toml: write your own install command, for example uv pip install -r requirements.txt (uv's documented way to install from a requirements file). A build command you wrote yourself is never changed. When a build command fails, the deploy's reason shows the command and its last output lines.
Environment and database
Put configuration in the site's .env; connect a database to get DATABASE_URL. The app's output is on the Logs pane under App process.
Background workers
Run queue consumers, schedulers or bots as daemons of the site's user, with their working directory in the site's current folder.
Updated November 28, 2026 View as Markdown llms.txt