Skip to content
Error Budget LabsOpen app

Add a component to your app

This page shows how to add a new component to an app that is already running on Orbit, for example a background worker or another service from the same repository.

Orbit reads your repository again, shows you which components it found that your environment does not have yet, and adds the ones you pick. You can also add a background worker manually. Either way, you do not need to set the app up again.

Orbit’s scan can only find what is in your repository. Before you start, commit the change that creates the component, for example a new service or a new background worker, and push it to the branch your environment deploys from. The rescan reads the latest commit on that branch.

  1. Open the environment’s Workloads page. Pick the environment in the switcher at the top of the dashboard, then open Workloads in the sidebar.
  2. Open the New menu and choose Detect automatically. Orbit reads your repository again. This can take a minute.
  3. Read what the panel shows. New components are labelled as new, with details such as their folder and start command. Components you changed are labelled as changed, and the rest are listed as unchanged.
  4. Select the component you want (tick its box). New components start unselected on purpose, so that a scan can never add something you did not choose.
  5. Click the Add button at the bottom of the panel. Orbit confirms that the component was added.
  6. Wait until it is running. Orbit shows the component starting, and then running, on the Workloads page.
  7. Open its Logs. Click the component’s card, then the Logs tab, and check that it prints what you expect. See Logs.

Only workspace owners and admins see the New menu, so ask one of them if you do not see it.

A rescan never deletes a component.

You can also use the rescan after changing a component you already have, for example its start command.

  1. Commit and push your change, then choose New, then Detect automatically.
  2. Compare the old and new values. Each changed component shows both.
  3. Tick Apply on the changes you want, then click Apply changes.
  4. Wait until the component is running again, and check its Logs.

Only workspace owners and admins can apply a change. Some changes are not applied from this panel:

  • Environment variables: change them on the Environment tab.
  • A renamed component, or one whose type changed.
  • A paused component: resume it first.

A change to a component’s folder or Dockerfile is saved and takes effect on the next build.

Don’t want to change your code? Add the worker right in the dashboard. It runs the same build as a component you already have, with its own start command.

  1. Open the New menu and choose Add manually.
  2. Give the worker a name.
  3. Choose which component’s build it shares.
  4. Enter the start command, for example node worker.js. A worker always needs one.
  5. Add arguments if you need them, one per row, for example --queue and then emails. Will run shows the full command.
  6. Click Add worker. Orbit shows it starting and then running, and takes you to its Logs.

Open the component, then the Settings tab, and click Edit start command. Change the command or its arguments and click Save. Orbit restarts the component with the new command and shows when it is running again.

Only owners and admins can add a worker manually or change a start command.

  • The component does not show up in the rescan. Check that your change is committed and pushed to the branch your environment deploys from, then rescan.
  • I can see the component, but I cannot tick its box. Orbit can only add a component from a rescan when it runs an image your environment already has. A component that needs its own build, or a worker with no start command, is shown with a note instead.
  • The component keeps restarting. Open its Logs tab and read the last lines it printed. Typical causes are a missing argument or a program that is not in your image.