Update EmDash on one or many sites
Update EmDash on one site or many from the EmDash Updates tab.
Open EmDash Updates, select the sites, then select Update selected. To update one site, select Update next to its EmDash version on the site page.
Before you start
- You are a Developer, Admin or Owner, or your custom role holds
updates:write. Read-Only members see the tab withupdates:readbut cannot update. - No Fleet code runs on a site, and an update does not touch the live site. Fleet runs
.github/workflows/fleet-update.ymlin the site's own GitHub repository. The workflow installsemdashand@emdash-cms/cloudflareat one version withnpm install emdash@<version> @emdash-cms/cloudflare@<version> --save-exact. Fleet commits the changedpackage.jsonandpackage-lock.json. If any other file changed, Fleet commits nothing. See EmDash and plugin updates. - The repository holds an active
fleet-update.yml. A site Fleet created has it. Fleet writes it once, when it creates the site, and never changes it afterwards, so on another repository you add the file yourself. - Each site is Active, Setup not finished, Deploying or Migrating. An update for a Deploying or Migrating site waits in the queue.
- A linked site needs a GitHub connection. Without one, its page shows "Limited mode: add GitHub to enable updates".
- Read the release notes on the EmDash releases page. Fleet offers stable releases only.
Steps
- Open EmDash Updates. The table lists each site with its core version.
- Search or filter to narrow the list.
- Select the sites to update. Select all applies to the whole filtered result.
- Select Update selected.
- Choose the newest stable release, or another version from the list.
- Review the installed and target version of each site, then confirm.
- Open the update job page that the tab links. It lists the result per site.
- On a site Fleet created in
directmode, wait for the deploy that follows the commit. EmDash applies its core migrations on the first request, so the site can show Migrating for a while.
Result
- A site Fleet created in
directmode gets a commit ofpackage.jsonandpackage-lock.jsonon the default branch, and the deploy follows. The site page then shows the new EmDash version. See Deploy a site. - A linked site, and a created site in
pull_requestmode, gets a pull request from the branchfleet/update-<job_id>that links the Fleet job. Fleet deploys nothing. Merge the pull request in GitHub, then deploy the site from Fleet. Fleet does not track the merge, so the next deploy builds whatever the default branch then holds. - A failed item leaves the running version unchanged, and the other sites go on. The member who started the update sees a "Job failed" banner on the site and in its Activity view.
If something goes wrong
Fleet refuses the whole request when a selected site is in the wrong status. It creates nothing.
One or more selected sites cannot be updated in their current status. Open each site to see its next step.
The job page shows this when its site left a status that allows updates.
This site cannot be updated in its current status. Open the site page to see its next step. If its resources are missing, use Recreate or Unlink there.
While Fleet support has paused updates, every request is refused.
Fleet support paused updates. Try again later.
The job fails before it changes anything when the repository has no active workflow file.
This repository has no active fleet-update.yml, so Fleet cannot prepare the update. Add it as the Fleet documentation describes, then try again.
Nothing is committed when the default branch changed during the run.
The default branch changed while Fleet prepared this update, so nothing was committed. Run the update again.
Nothing is committed when the run changed a file besides the two package files, or more than Fleet accepts.
The update run returned files Fleet does not accept, so nothing was committed. Run the update again. If it fails again, contact support and quote job <id>.
- If the site shows Down or the deploy after the update fails, see Deploy failed and Site shows Down, or roll back. Never send a token, a password or an API key to support.