Docs / Concepts / Projects, services and environments

Projects, services and environments

How a repository maps to StoreEnv.

The repository is the configuration. Nothing has to be created or mapped by hand.

Git remoteProject. github.com/acme/cakeshop becomes acme/cakeshop.
Folder with an env fileService. backend/.env belongs to backend. The repository root is called root. Nested folders keep their path, such as apps/web.
.envThe default environment.
.env.<suffix>An environment named after the suffix. prod becomes production, dev becomes development.
.env.example, .env.sample, .env.templateNot pushed. They are compared against the generated template.

Ignored folders

node_modules, .git, dist, build, .next, coverage, vendor and .venv are skipped. Add more under "ignore" in .storeenv.json.

.storeenv.json

An optional file you can commit. It never holds secrets.

{
  "ignore": ["fixtures"],
  "environments": { "backend/.env.clienta": "client-a" }
}

Stop pasting secrets into chat.

$ npm i -g storeenv Get started