main.
Deploy a Preview
fimo deploy works on the current Branch. It commits pending changes, pushes the Branch, updates its Preview, and returns the Fimo Studio URL.
Add --description to say why you made the change. It becomes the body of the commit, and teammates and agents that later edit the same files read it, for example when their work conflicts with yours:
--no-wait only when you deliberately want to return after sync without that readiness check.
Use your local dev server for everyday editing. Deploy at review points when you need a hosted link.
When a deploy fails
The error names the step that failed: pulling the Branch into the Preview sandbox, installing dependencies, starting the dev server, or the final readiness check. When the sandbox produced output, the error also includes the exit code and the last lines of that output, with credential-shaped values redacted, so you can fix the cause and runfimo deploy again. When the final readiness check fails, the message names what the check last saw, such as a dev server that stopped or an optimized dependency the Preview route was still delivering. With --json, read error.details.failure_code, error.details.phase, error.details.exit_code, and error.details.log_tail.
fimo logs reads the Preview that is currently serving. A deploy that fails while preparing a replacement sandbox discards that sandbox, so the output on the error is the record of that attempt.
A failed --publish still returns its publication ID. Run fimo publish logs <id> for the build output.
A failed publication never replaces the version that is already live. Fimo also tells the people responsible: whoever published and the site’s managers get an email that opens Publish, unless they turned off Publication failures, and Publish in Studio shows Latest update failed until a newer publication finishes. See Publish in Studio.
Publish production
fimo deploy --publish pushes the configured Production source Branch and publishes it in one command. It does not run from another Branch.
To publish the revision already on the Fimo remote without another deploy:
If you are upgrading from Fimo 0.15, remove
--version. Fimo now assigns each publication a stable ID; use --label
for an optional human-readable name.Redirects and response headers
Configure hosting rules in.fimo/config.json, not provider deployment files. The hosting object supports redirects, headers, rewrites, cleanUrls, and trailingSlash.
"permanent": true only for lasting moves; browsers cache it. An explicit statusCode of 301, 302, 307, or 308 overrides permanent.
Use a host condition to apply a rule to a particular hostname. For example, this redirects every www URL to the apex domain while preserving the path and query string:
/:path(.*) when the rule must include the homepage / as well as nested paths. Fimo preserves your source pattern as written; /:path* does not include the bare / on this hosting path.
Connect both hostnames to the project before testing. A host condition matches the hostname the visitor requested, including a connected custom domain. Use missing instead of has to match requests that do not satisfy the condition. Host conditions also work on rewrites and response headers.
Run fimo validate before deploying. Rules apply only to deployed sites; test them on a hosted Preview or published site, not a local dev server.
When a site is unavailable
A site that has been unpublished or taken offline can show “This site is unavailable” at its Fimo address. If you own the site, open Fimo to check its publication status. Restoring permission to publish does not put the site back online automatically; publish again when it is ready. Republishing restores the site at the same Fimo address, including a customized default address.CLI and Studio
The CLI and Studio are two ways to publish the same site:- Use the CLI while working in the repository. It can push local changes and publish in one command.
- Use Publish in Studio when the latest work is already saved and you want a visual publish action.
Continue the launch
Launch checklist
Check readiness, URL, live site, and recovery.
Custom domains
Choose the address visitors will use.
Analytics
Review traffic after publication.