The pipeline
The tracker shows the same steps live (starting build, building image, running release command, deploying runtime, verifying health), so a stuck deploy is stuck at a named step rather than “in progress”.
When a deployment builds nothing, the tracker shows Building as skipped and says why. Reused build means an existing image was deployed: a redeploy of a commit Meridian already built (its image still exists, so it goes straight to deploying) or a promote from another environment. Any finished build of that commit for the app counts, in any environment of the same region, including one whose deploy then failed at the release command or the health check, so retrying a failed migration does not rebuild the image. No build: rollback is shown for a rollback.
What your repository needs
- A
Dockerfileat the repository root. Meridian builds from it withNODE_ENV=productionset as a build argument, and refuses a deployment when the file is missing (Dockerfile not found at root of repository). The Shopify app template’s Dockerfile works as it is. - A server that listens on the environment’s container port. Cloud Run sends it traffic once the container accepts connections on that port. A route that answers the health check path with HTTP 200 is a fallback Meridian uses when Cloud Run cannot confirm the revision. See Container port and Health checks and traffic.
- For a Prisma app, a datasource in the app’s database engine (
provider = "mysql"orprovider = "postgresql") that readsDATABASE_URL, which Meridian sets for the environment’s database. A provider that names the other engine stops the deploy before the build. The template’s SQLite datasource breaks billing. See What needs Meridian hosting.
shopify app deploy, which needs your production URL as APP_URL. See Recommended Shopify app setup for the release order.
Container port
Your server must listen on port 3000, unless you set another port for the environment, on all interfaces (0.0.0.0, not localhost).
- The port is also in the
PORTenvironment variable at runtime, so a server that readsPORT(the Shopify app template’s does) needs nothing else. Meridian does not setPORTitself and you can’t override it: the platform sets it to the container port. - To use another port, set Container port in the environment’s Runtime settings (any port from 1 to 65535, with the hosting edit permission). It reaches the running app as soon as you save, without a deploy, so change it only when your server already listens there.
- An environment that never set a port shows it as empty (
container_port: nullthrough the API and Meridian MCP), which means 3000. - A server listening on another port never becomes ready, so the deploy fails and the live version keeps serving.
Readiness checks
Before it builds anything, every deployment checks that the app can start once it is built. Checks that fail stop the deployment within seconds, marked as an invalid configuration with what to fix, instead of after a build that would crash at boot. Checks that warn let the deployment carry on and are written to its log. The Plan Builder billing check is the one exception: billing does not stop the app from booting, so the deployment writes it to its log as a warning even whenmeridian doctor reports it as failed.
Each check comes back with a key, a status (pass, warn or fail), a code saying what is wrong, a message and where to fix it. The codes are the ones in this table:
A variable named
SHOPIFY_API_KEY or SHOPIFY_API_SECRET that you set yourself on the app or the environment counts: it wins over the Meridian SDK credentials at deploy time, so the credential check passes. A message about a variable you set says which scope sets it: set for All environments, set for this environment, or set for this environment, which overrides the All environments value when both exist, since the environment’s value is the one the app gets. Plan Builder billing reads neither variable: it reads only the client ID and secret saved in App settings > Meridian SDK, so the Plan Builder billing check reports missing_shopify_client_id or missing_shopify_client_secret until you save them there too. A deployment’s own checks read the repository at the commit being deployed. meridian doctor and app_readiness_get read the repository’s default branch, so a commit from another branch can pass or fail differently once deployed. A deployment stopped by a failed check ends with error_code: invalid_config, and its error_message lists the failing checks.
Run the same checks yourself before deploying:
meridian doctorin the linked project prints each check with what to fix and where.--env stagingor--env developmentchecks another environment (production is the default),--jsonprints the report, and the command exits with code 1 when a check fails. It also reports a repository without aDockerfileat its root, which the dashboard refuses to deploy.meridian doctorin a repository not linked to an app yet checks the repository locally instead, before you create the app. See Doctor before the app exists.- The Meridian MCP tool
app_readiness_getreturns the same report to a coding agent.
The first deploy waits for the database
The first Deploy of an app that has no production environment yet creates it, and creating it starts its managed database. Meridian does not send the deployment while that database is being created. A message says the database is being created, and the Deploy button shows Provisioning database… until it is ready (usually within five minutes), then becomes available again. The API refuses a deployment to an environment whose database is still being created (ENVIRONMENT_NOT_READY), and a push to the auto-deploy branch during that time is ignored. Through Meridian MCP, deployment_create needs an existing environment: when environments_list has no production environment, press Deploy once on the Hosting page, which creates it.
Release command
A release command is a shell command that runs once per deploy, inside the image that was just built, before the new revision exists. It runs with the same environment variables, secrets, database access and network as the app itself, sonpx prisma migrate deploy works there exactly as it would at startup.
Set it in the environment’s Runtime settings. The usual value is your migration command. When the environment has a database, the repository’s default branch has a prisma/migrations folder and no release command is saved, the Runtime settings suggest one: Use npx prisma migrate deploy fills the field, and nothing changes until you save.
Why move migrations there: the Shopify app template runs prisma generate and prisma migrate deploy in its docker-start script, which means every new instance pays for both before it can answer a request. That is most of a scaled-to-zero cold start. With migrations in the release command and Prisma generated at build time, the start command is just the server, and a cold start drops from over ten seconds to a few.
Rules:
- The command runs through
sh -c, so&&chains work. - It has 15 minutes. A command that has not finished by then fails the deploy.
- A non-zero exit fails the deploy at the “running release command” step. No revision is created and the live revision keeps serving.
- The command’s output appears in the deploy log, in place, between “Running release command” and the line that closes the step, whether it succeeded or failed. Only the lines your command printed count there: the database proxy’s lines and the platform’s own are left out.
- When it fails, the reason quotes its output under “Last output from the release command:”: every line that reads like an error (Prisma’s
P3018and the database error under it, for example), the line before each, and the last lines it printed. The reason is quoted again once the full output is stored, since the last lines can reach the logs a few seconds after the failure. - Your AI client reads the whole output with
logs_tailandsource: "release", or withdeployment_getandorder: "asc". - It runs once per deployment. If Meridian retries a later step, a release command that already completed is not run again.
- Promotions run it too, since the promoted image is deployed into an environment that has its own database.
What starts one
Automatic deployments are a branch plus a target: every push to that branch builds to Development or Production (Staging too on Enterprise). If the target is Development and the app has no development environment, pushes build to Production. Set the target to None and nothing deploys without you asking: the help line under the card then reads Pushes to deploy nothing. and the branch picker is greyed out. Picking a branch or a target saves nothing on its own: the help line says what will happen (A push to main deploys to Production.), and Activate (from None), Deactivate (back to None) or Save applies the choice. Changing the branch or the target needs the Hosting: Edit permission, and making pushes deploy to production also needs hosting.promote, as a manual deploy there does. When several apps of your organization connect the same repository, a push deploys each of them whose branch matches, to its own target. See GitHub.
Only a push to the branch itself counts. A tag that shares the branch’s name (a tag called
main, say) never deploys, and neither does deleting the branch. So whoever can reach your auto-deploy target is exactly whoever your repository lets push to that branch: protect it on GitHub (pull requests and required checks) and an unreviewed commit cannot reach production through Meridian. A manual deploy still lets someone holding the right permission pick any commit.
A manual deploy picks the environment (production, development, or staging on Enterprise), then the branch and commit. The latest is marked, or you can name any sha. A sha that isn’t pushed to the connected repository fails during the build rather than silently doing nothing. From a terminal, meridian deploy in the linked project deploys the commit you have checked out (it must be pushed), to production by default or to another environment with --env staging or --env development, and --sha names another commit. It needs the same permissions as the Deploy button. A production deploy also needs production access (meridian login --production, approved in your browser) and CLI 1.7.0 or later. Before it sends the deploy, the CLI asks for confirmation, for example Deploy 3f2a91c to production of "My App"? (y/N). Without a terminal, pass --yes or set MERIDIAN_YES=1 instead. --yes only answers that question and never replaces production access. Staging and development deploys need neither.
Promote takes a succeeded deployment’s image digest and deploys that same digest into the next environment, with the Bring to staging and Bring to production buttons. There is no build step. Secrets, variables and add-ons stay per-environment. Promoting into production requires the hosting.promote permission. See Bringing a build forward.
Pull requests get their own preview deployments, torn down when the PR closes. An app keeps at most two live previews at a time. See GitHub.
On a free trial, none of these start until the organization has chosen the plan that starts when the trial ends. The Hosting page asks for it, and nothing is charged before the trial ends.
Following a deployment
A deployment runs through four steps: queued, build (skipped when an existing image is reused), deploy (the release command, then the new revision) and verify (the health check). The Hosting page shows the step it is on, and Why it failed when it fails. See Logs for how that reason is written. From a terminal,meridian deploy --watch starts the deploy and follows it to its end: each step with its duration, the new log lines, then the result. A failed deploy prints the reason and the last log lines, and the command exits with code 1 so a script can stop. meridian deploy --watch --deployment <id> follows a deployment that is already running, whoever started it.
From an AI client, Meridian MCP’s deployment_get with wait_until: "finished" waits up to 50 seconds for the deployment to finish before it answers, so the agent calls it again instead of sleeping between status checks. Its answer says whether the deployment is finished, lists the steps with their status and duration, and gives the latest log lines first, without the build’s boilerplate (git’s checkout advice, Docker’s credential warning, BuildKit’s builder details and download progress, npm’s update notices). Following a deployment needs Hosting: View.
Why a deploy fails
A failed deployment carries anerror_code and an error_message. You find them under Why it failed on the Hosting page, in meridian deploy --watch, and in Meridian MCP’s deployment_get and deployments_list. While error_message_pending is true, the reason may still be replaced by the container’s output or the build log: read the deployment again.
Runtime deployment failed. Check the deployment logs for details or retry the deployment. is the generic message when Meridian has no clearer reason: read the deployment’s log lines (deployment_get), then retry.
Meridian creates the Session table after a successful production deploy, so Plan Builder billing can read sessions before your schema lands. When a later commit brings a Prisma migration that creates Session together with other tables, Meridian reconciles the common cases itself. Otherwise the deploy stops before the release with Your migration <name> creates the Session table together with other tables, but the database already has ..., because prisma migrate deploy would fail with P3005. Mark that migration as applied with prisma migrate resolve --applied <name> against the environment’s database, or move the Session table into a migration of its own so Meridian can record the baseline for you. Retrying alone fails the same way.
React Router apps: form actions through the edge router
Meridian serves your app through an edge router. The router talks to your service by its internal hostname and passes your public one inX-Forwarded-Host. From React Router 7.18 the framework compares the origin of every form or fetcher POST with the host it believes it serves, and @react-router/serve does not read that header. Left alone, that check would answer 400 to every form your own pages submit.
The router closes that gap for you. When a request’s Origin is the public hostname it arrived on, the router forwards it as the origin your app expects, so the framework’s check passes exactly as it would without a proxy. A request from any other origin keeps its Origin and your app rejects it as before. This applies to every hostname your app answers on, custom domains included, with no configuration, no rebuild and no redeploy.
You do not need allowedActionOrigins in react-router.config.ts for Meridian hostnames. If you added one, it can stay. Keep it to exact hostnames: a wildcard, or turning the check off, hands any origin the right to post to your actions, which is the attack the check exists to stop.
If your app reads the request host itself, read X-Forwarded-Host rather than Host. A framework whose check also compares the scheme, such as SvelteKit on adapter-node, additionally needs to trust X-Forwarded-Proto (for SvelteKit, set PROTOCOL_HEADER=x-forwarded-proto).
Health checks and traffic
A new revision receives traffic only after it is verified. If it fails, the previous healthy revision keeps serving. There’s no automatic rollback, so a bad release doesn’t take the site down, it just doesn’t take over. Verification asks Cloud Run first. Cloud Run marks a revision ready once its container accepts connections on the container port, and a ready revision passes without any request to your app. Only when Cloud Run cannot confirm it does Meridian call the environment’s health check path (/health by default) and wait for HTTP 200. So an app without a route on that path deploys normally, and a route that answers 200 is a useful fallback rather than a requirement.
A pull request preview is verified the same way: Cloud Run first, then the health check path of the app’s production environment (/health when it has none), five attempts. Meridian does not follow redirects from the health check path, so answer it directly with HTTP 200. A redirect counts as a failed check.
The first deploy waits for the address
A new environment’s first deploy is marked Succeeded only once its address ({slug}.the-meridian.app, or the -staging and -dev ones) answers through Meridian’s edge the way a visitor sees it. Right after the service is created, Google Cloud can take a minute or two to let the edge reach it, and visitors would get a 403 from Google in that window. Until it can, the deploy stays in Verifying, the timeline says it is waiting for the address, the Domains page shows the address as Provisioning with a note saying why, and environments_list shows it as not_deployed.
If the address still refuses visitors after three minutes, the deploy fails with a message saying so. Your container is healthy, so deploy again a few minutes later. Later deploys of the same environment don’t wait: the edge can already reach the service.
For a production launch, deploy the environment before you point your DNS or your Shopify app URLs at it. See Custom domains.
Rollback
A rollback shifts all live traffic back to a previously succeeded deployment, reusing its existing revision, with no rebuild, so it’s as fast as a traffic switch. It’s refused if the target never succeeded or the environment has another deployment in flight. You name the deployment to go back to: from Meridian MCP, pass an earlier succeeded deployment of that environment todeployment_rollback (the newest succeeded one is the one serving).
Rolling back development or staging needs Hosting: Edit. Deploying to production and rolling production back both need the hosting.promote permission, the same one that gates Bring to production.
Since there’s no restart button, redeploy and rollback are also the two ways to replace running instances. See Restart.
Rolling back with meridian rollback
From a terminal,meridian rollback in the linked project rolls production back, or another environment with --env staging or --env development. Without --to, it goes back to the successful deployment before the live one, and a second rollback in a row goes one step further back instead of returning to the deployment you just left. --to <deployment-id> names another earlier successful deployment of the same environment. Before anything changes, the CLI shows the live deployment and the target, with times in your machine’s time zone:
Rolled production back to 8be41d0: deployment <id> is live. When there is nothing to go back to, the CLI says The production environment has no earlier successful deployment to roll back to., and while another deployment is in flight, A deployment is already in progress for this environment. Wait for it to finish before rolling back. meridian rollback needs CLI 1.10.0 or later.
Production rollbacks with meridian rollback
A production rollback asks first,Roll back production of "My App" from 3f2a91c to 8be41d0 (deployed 2026-11-10 09:41)? (y/N), and needs production access (meridian login --production, approved in your browser). Without a terminal, pass --yes or set MERIDIAN_YES=1 instead. --yes only answers that question and never replaces production access. Development and staging rollbacks need neither.