~/docs/concepts

Dashboard

pherwerz docs

How it fits together

Five nouns cover all of pherwerz. Each one owns the next.

Updated

2026-12-02

Source

apps/web/docs/concepts.mdx

ThingWhat it isOwns
WorkspaceYour team, its members and their rolesProjects
ProjectOne product, such as an app and its APIEnvironments, preview settings
EnvironmentOne running copy of the project, on one git branchServices, databases, backends, cron jobs, variables
ServiceA web service, static site or cron jobIts builds, deploys, logs and URL
BackendPostgres with auth, storage and functionsUsers, tables, buckets, functions, API keys

Environments run branches

An environment is connected to a repository and a branch. Its services build from that branch, and a push to it redeploys them. A branch runs in one environment per repository in a project, so main can't be both prod and something else.

Most projects have permanent environments made by hand (prod on main, dev on dev) and previews: copies made for feature branches, stopped when the branch is merged. See Preview environments.

Services reach databases by name

Inside an environment, services and cron jobs reach the environment's databases by name, on a private network. Nothing outside the server can reach a database unless you give it a public endpoint, and from your own computer you use phz db tunnel.

Stopping an environment

Environment settings → Stop environment stops every container but keeps data, settings and URLs. Its URLs answer 503 with a page saying it is stopped. Start brings back the same containers without a rebuild.