The web console

Everything about your apps, live, in a browser.

On this page

The console is at the server's console hostname: https://moorage.apps.example.com, or http://moorage.localhost:8080 on your own computer. Sign in with your account; moor server status shows the link that creates the first one.

Nearly everything in it is also available from moor or the API.

Getting started#

Claiming a server leads here, and Getting started in the sidebar comes back. It says how the server looks (its DNS and certificates, for an admin), what to install and how to sign in from your own computer, and how to deploy. It watches for your first deployment, and says when it is live.

Apps#

Every app: how it stands, its address, its release and its last deployment, changing as they do. New app asks for a name and a project, and says how to deploy it. Filter the list by typing part of a name. Each has a little line of its requests over the last hour.

The list of apps: each one's status, address, project, requests, release and last deploymentThe list of apps: each one's status, address, project, requests, release and last deployment
Every app, changing as they do.
Status
HealthyEvery instance is healthy
1 of 2 healthySome are not, and those that are get the traffic
DownNone is
DeployingA deployment is under way
LiveA static site being served
SleepingNothing used it for a while, so its instances are stopped, and the next request wakes it
Scaled to zeroIt was asked to run no instances
Deploy failedIts first deployment failed, so that nothing is served
Not deployedIt has never had a release

A badge beside the status says if the latest deployment failed, while the release before it keeps serving.

An app#

Its page says what it serves and who deployed it, lists its instances with their health, restarts and last exit, and shows its latest deployments and activity. Instances and deployments change as they do. From here:

An app's page: its status, address and release, buttons to deploy, redeploy, restart, sleep and roll back, the last hour at a glance, and its instancesAn app's page: its status, address and release, buttons to deploy, redeploy, restart, sleep and roll back, the last hour at a glance, and its instances
An app's page.
DeploySays how: from its directory, with git push, or from the page, by uploading a .tar.gz of its source or naming an image. It goes to the deployment when one starts.moor deploy
RedeployBuilds again what the current release was built from: the same commit, upload or image name, for when a toolchain has moved, a tag points elsewhere or a build variable has changed. A release uploaded ready to run has nothing to build.moor redeploy
RestartReplaces the instances, without downtime, or those of one process.moor restart [PROCESS]
Roll backServes the release before this one again, as a new release, in seconds. A deployment's page rolls back to that one, and can restore the variables it ran with.moor rollback
ScaleSays how many instances of each process run.moor scale
Sleep and WakeStops its instances until a request wakes it, and starts them again.moor sleep, moor wake

When an app has more than one environment, its pages have a choice of which one at the top, and everything on them is about that one.

An app's Settings are for maintainers: moving it to another project, renaming it, deleting it, and connecting a repository, which shows its pull requests and approves them.

moor apps rename shop store
moor apps delete shop --keep-data

Scale on an app's page says how many instances of each process run. See Scaling.

Environments and previews#

An app's Environments tab lists where it runs: each with its status, address and release. From here you make an environment or a preview of a branch, Promote what one runs to production, Lock one against deployments, Pin a preview and Remove or Destroy what you no longer need.

The Previews page: a preview of a branch, with its status, address, when it was last used and when it expiresThe Previews page: a preview of a branch, with its status, address, when it was last used and when it expires
Previews, in the sidebar: those of every app you can see.

Previews in the sidebar has those of every app you can see, with when each was last used and when it expires.

Metrics#

An app's Metrics tab has charts of its requests, response times, CPU and memory, for the chosen environment, from the last few minutes to the last 30 days, with each release marked. The last hour on its page has them at a glance.

Cron#

An app's Cron tab lists its cron jobs, with their schedules, when each next runs and how it last went, and Run now does just that. Below them are its runs, each with what it said, and a box to run a command in the current release.

Domains and access#

An app's Domains and access tab has hostnames of your own for the chosen environment, with the DNS record each needs and whether it points here. It says who can reach the environment, and why, and for maintainers changes it: anyone, a password, those signed in, or only share links, and a list of addresses. Below it, deployers make and revoke share links, each shown only when it is made.

A deployment#

Its page shows how it is going, as it goes:

A deployment's page: its five stages with how long each took, then the logA deployment's page: its five stages with how long each took, then the log
A deployment, with its stages and log.
moor releases show v3
moor releases diff v3 v4

Logs#

An app's Logs tab shows what it says, as it says it: the output of every instance, merged by time. You can narrow it down by instance, time, text and source, and pause, go further back or download it. See Logs.

Variables#

An app's Variables page lists what it runs with, and where each comes from: this environment, every environment, or the [env] of its moorage.toml, which a variable set here overrides. A secret is sealed when it is set, and is never shown again.

Editing variables as text: NAME=value lines, with secrets as dots, and a button that says what would changeEditing variables as text: NAME=value lines, with secrets as dots, and a button that says what would change
Edit as text, for pasting a .env or changing many at once.

Add a variable or Change one, and the change is released at once, as a new release that runs without downtime; or Save without releasing, and the page says what is waiting and offers to release it. A change to a variable available to builds reaches the app with its next build: Redeploy builds it now.

Edit as text has them all as NAME=value lines, for pasting a .env or changing many at once. Take a line out and the variable goes; a secret shows as ••••••••, which keeps its value if left. See what changes says what it would do before it does it.

Maintainers can Reveal a secret, which shows its value once, and is recorded.

moor env reveal STRIPE_KEY

Projects#

Projects lists those you have a role in. A project's page has its apps and members, and for its maintainers who else may do what. The console shows you what your role allows: a viewer sees an app without its buttons, and nobody sees what they have no role in. See Projects and roles.

Your account#

Your name at the foot of the sidebar goes to your account: changing your password, which ends your other sessions; your SSH keys; your API tokens, each shown once, with what it can do, for which apps and until when; and your Sessions, to end one you no longer recognise.

moor password

Settings#

For administrators.

The Server tab of Settings: its addresses, what it listens on, TLS, notifications and who may reach what, as server.toml saysThe Server tab of Settings: its addresses, what it listens on, TLS, notifications and who may reach what, as server.toml says
Settings → Server: what server.toml says.

Notifications#

Notifications in the sidebar has what you have been told, with how many you have not read: a deployment of yours that failed and, in a project you maintain, one that failed, an app that keeps crashing or a cron job that failed. A project's page has the rules that send its news to a channel as well, for its maintainers.

Activity#

What happened, newest first, as it happens:

The Activity page: what happened, newest first, with deployments, a failed one marked in redThe Activity page: what happened, newest first, with deployments, a failed one marked in red
What happened, as it happens.
DeploymentsQueued, live, failed, superseded or canceled, and who by
ReleasesA rollback, or a release for a change of variables
VariablesThat they changed, and their names: never their values
RunningThat it was restarted or scaled, and who by
InstancesThat one exited and restarted, sickened, recovered or was replaced
The serverThat it started, and which version

Choose an app to see only its own. Events are kept for 90 days. From the command line:

moor events --app shop -n 20
moor events -f

The API has them too: GET /api/v1/events, and GET /api/v1/events/stream to follow them as server-sent events.

Jumping around#

Press ⌘K (Ctrl+K elsewhere), or /, to find an app, a page or an action by typing a few of its letters. Arrow keys choose, and Enter goes.

The search box over the list of apps, with pages of the app tasks listed for what was typedThe search box over the list of apps, with pages of the app tasks listed for what was typed
Type a few letters to go anywhere.

Themes#

The console follows your system's light or dark setting. Light and Dark at the foot of the sidebar override it, in this browser.

Without scripts#

Every page works as plain HTML, with forms and links; a deployment under way reloads itself every few seconds. Scripts add what happens by itself: live updates, jumping around, copy buttons and the choice of theme. Pages run under a strict Content-Security-Policy, with no inline scripts or styles.

Live updates#

A page follows the server over one connection, and a deployment's log over one more, and a page out of sight lets go of them, and catches up when it returns. Behind a proxy, the proxy must not buffer responses; moor server doctor --public-url checks that.

Working on the console#

From the top of a checkout, this reads the console's templates and assets from internal/console for each request, so that a change shows when you reload:

moor server run --dev

Suggest a change to this page