Deployments and logs
The Deployments page, the What's live widget and the Logs page.
Deployments
The Deployments page lists every deployment AntelopeJS Cloud ran for the project, newest first: its environment, status, trigger, start and duration. Tabs filter it to In progress, Failed and Rollbacks. A deployment that still runs updates on screen without a reload.
Opening a deployment shows:
- Its route from Queued to Live.
- Where a failed deployment stopped, and what its environment still serves.
- An action that rolls the environment back to it.
A deployment whose build failed links that build's log. Followed, the link shows the end of the log on the same page, read from AntelopeJS Cloud at that moment, 300 lines at most.
The list reads the project deployments route of AntelopeJS Cloud. While AntelopeJS Cloud answers that route with 404, the module composes the list from each environment's serving and target deployments and its services' histories. A deployment only those histories name shows — for its number.
What's live widget
The Deployments page opens with the What's live widget, AntelopeCloudDashboardEnvironments. It shows each environment of the connected AntelopeJS Cloud project in one row:
- Its name.
- The version it serves:
v15, else the deployment number. - Its state.
- Its address, with a link to Deployments.
The widget reads the Deployments page's /environments route on mount, and every 15 s while the page shows. Extending shows how to place it on another dashboard page.
Logs
The Logs page streams live what a service of an environment prints, with a search and a level filter. The page says when the environment sleeps, and when the stream dropped and is resuming. It replays the lines it missed.
The browser reads the Logs page's own stream route. The DMS backend relays one log stream of AntelopeJS Cloud to it as server-sent events, with the stored token.