Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

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.
  1. Set the admin account in auth_service/.env (ADMIN_EMAIL and ADMIN_PASSWORD), as for the local stack. If you have not made the .env files yet, run make envs first.

  2. Build and start production.

    Terminal window
    make prod

    The 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.

  3. Open the studio at http://localhost:8400 and sign in as the admin.

  4. 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-stop
    make runners STACK=prod
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 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 prod makes 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/.

Sign the helm client in to production with port 8400 and production’s API key file:

Terminal window
cli/bin/helm login --url http://127.0.0.1:8400 --email <admin email> \
--api-key-file deploy/secrets-prod/helm_api_key

helm keeps one address, so it points at one stack at a time. See The helm CLI.