Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Run a frontend, APIs, workers, and databases as one application where only the services you choose are exposed to the internet.

Prerequisites

  • A StackShift account
  • A GitHub repository (monorepo or one repo per service)

Workflow

1
Create an application from Dashboard -> Applications. The name sets the internal domain every service shares.
2
Add each service with its repository, root directory, port, and type (web service, background worker, or scheduled job).
3
Mark services public or private. Public services get a URL on the internet; private services are only reachable by their siblings.
4
Attach managed databases to the application so services can connect to them.
5
Deploy services individually — a push to a monorepo only rebuilds the services whose directories changed.

What an application gives you

  • One private network per application — services in different applications cannot reach each other, even by IP.
  • A stable internal hostname per service that survives redeploys and always points at healthy instances.
  • Independent builds and deploys per service, each with its own repository, branch, root directory, logs, and environment.
  • A dependency map in the dashboard showing which services talk to each other and why.

Import everything from one file

Instead of adding services one by one, paste a stackshift.yaml in the Import tab. Preview first to see exactly what would be created.

Applications and workspaces

A workspace and an application do different jobs. A workspace only groups a product’s projects, databases, domains and storage so you can switch to them in one place; moving things between workspaces never changes how they run. An application is a private network: its services reach each other on internal hostnames and nothing outside it can. An application lives inside one workspace, and its projects and databases always move with it.

Databases that belong to an application

A database attached to an application can only be used by that application’s services. If a project outside it points a variable such as DATABASE_URL at that database, its deploy stops and names both. Fix it from the failed deploy or from the database’s Connected projects: add the project to the application, or detach the database so any of your projects can use it. Detaching is refused while a service in the application still connects to the database. When you delete an application’s last service, StackShift offers to detach its databases at the same time. They keep their data, address and password.

Expected result

Every service has a stable internal hostname like api.myapp-1a2b3c4d.stackshift.internal, and only the services you marked public answer on the internet.

Common failures

  • service has no port: internal URLs need a port — set one on the service and redeploy.
  • two services share an internal name: service names must be unique inside an application.
  • a private service is unreachable from another app: this is by design — applications are isolated from each other.
  • Making a service private, or attaching a project as a private service, answers 409 project_has_merchant_websites with details.count when the project still serves merchant websites for a partner platform. Move or remove those websites first (see Partner platforms), then try again.

Private networking and connections

Connect one service to another so StackShift injects the internal URL as an environment variable — no IPs or hostnames to copy, and private services never touch the public internet.

Deploy from GitHub

Use the repository-backed project flow when you want StackShift to detect the app, build from source, and let you override runtime behavior before the first deploy.

Worker and background processes

Run a project as a background process type (worker, queue, scheduler, reverb) instead of a public web service.

Resource activity

Follow builds, deployments, releases and database operations from the resource you are working on.

Config as code (stackshift.yaml)

Describe an application in one file in your repository. Every push applies it, every pull request shows a plan, and risky changes wait for you.