Builds and deploys
A push becomes a running service in steps: Ghaym builds an image, starts it on your port, checks that it answers, then moves traffic to it.
All pages
Each deploy of a service goes through four steps, and the deploy shows the one it's at:
| Step | In the console | What happens |
|---|---|---|
| Build | Building | Ghaym builds an image from your repository. |
| Start | Deploying | The new image starts on every replica, one at a time, and the old ones keep serving until each is replaced. |
| Check | Health checking | Ghaym asks the app for its readiness check path until it answers. |
| Live | Live | The new deploy takes the traffic, and the one before it reads Superseded. |
The deploy's logs follow each step line by line.
Most languages build without a Dockerfile: Ghaym detects the language and framework on its own. Anything else builds with one. A repository that already has a Dockerfile when you add the service gets that builder from the start. Build command and Run command in build settings take the place of what Ghaym works out.
Ghaym starts the app with PORT set to App port, which is 3000 unless you change it. The app listens on that port on all addresses. Then Ghaym checks Readiness check path:
| Readiness check path | Passes when the app answers with |
|---|---|
Left empty, so Ghaym checks / | any status below 500 |
A path you set, such as /health | a 2xx or 3xx status |
Ghaym keeps asking for up to 30 seconds. A service with no public address is checked inside the project's network instead.
A failed build reads Build failed, and a failed start or check reads Failed. A failed deploy never touches the live one, so the deploy before it keeps serving. Its log says what went wrong. To go back to an earlier deploy, roll back: Ghaym puts that deploy's image live again without a build.
- A push to the branch a service tracks builds and deploys it, in every environment that tracks that branch.
- Applying a staged change to a variable, a bucket connection, the branch or a build setting deploys each website it changes.
- Size, replicas, routing, readers and access apply without a deploy.
To deploy again by hand, or to list a service's deploys, with the CLI:
ghaym cloud services redeploy web
ghaym cloud deployments list --service web