Run in production on a Mac
The production stack runs the current checkout for real work. It is separate from the local stack of Install and run: its own ports, data, images and secrets. Both can run on the same Mac at once.
Compared with the local stack, production:
- has no test host and no Echo workflow;
- restarts its services unless you stop them;
- caps each service’s logs and memory.
Start it
Section titled “Start it”-
Set the admin account in
auth_service/.env(ADMIN_EMAILandADMIN_PASSWORD), as for the local stack. If you have not made the.envfiles yet, runmake envsfirst. -
Build and start production.
Terminal window make prodThe first run makes a fresh secrets folder,
deploy/secrets-prod/, with its own keys. It then builds the images, starts every service and waits until they are healthy. -
Open the studio at
http://localhost:8400and sign in as the admin. -
Join the Mac’s native runners to production. Runners join one stack at a time, so stop any that run for the local stack first.
Terminal window make runners-stopmake runners STACK=prod
Daily commands
Section titled “Daily commands”| Command | What it does |
|---|---|
make prod |
Build and start production, wait until healthy |
make prod-down |
Stop production. Its data stays. |
make prod-logs |
Follow every service’s logs |
make prod-logs s=studio |
Follow one service’s logs |
make prod-ps |
Show what is running |
make runners STACK=prod |
Start the native runners for production |
Production publishes its own ports, on 127.0.0.1 only:
| Port | What |
|---|---|
| 8400 | The studio and its API |
| 5465 | Postgres |
| 4324 | NATS, for the native runners |
| 8435 | The object store, for the native runners |
The admin and secrets
Section titled “The admin and secrets”- The admin comes from
auth_service/.env. Its password is set only when the account is first made; change it later in the app’s Settings, and the change survives a restart. - Production’s secrets live in
deploy/secrets-prod/.make prodmakes them once and never overwrites them. The folder is ignored by git. - Keys for remote model providers, pasted in Hub › Providers, are kept in
deploy/secrets-prod/providers/.
Use helm and MCP with production
Section titled “Use helm and MCP with production”Sign the helm client in to production with port 8400 and production’s API key file:
cli/bin/helm login --url http://127.0.0.1:8400 --email <admin email> \ --api-key-file deploy/secrets-prod/helm_api_keyhelm keeps one address, so it points at one stack at a time. See The helm CLI.