# Operations

> Take a finished site from your machine to a live address and keep it running there.

---

LLMS index: [llms.txt](/llms.txt)

---

Once the content is written, this section gets it online and keeps it there:
previewing changes on your machine, building and hosting the output, adding
comments and analytics, upgrading the theme, and finding out why a build or a
page went wrong.

## Find it by task {#where-to-go}

| I want to… | Read |
| --- | --- |
| See my changes as I write | [Local preview](/docs/admin/preview/) |
| Build the `public/` directory I deploy | [Local preview](/docs/admin/preview/#production-build) |
| Publish to GitHub Pages, Cloudflare Pages, Netlify or my own server | [Deploy](/docs/admin/deploy/) |
| Serve the site under a subpath such as `example.com/docs/` | [Deploy](/docs/admin/deploy/#baseurl) |
| Keep preview deployments out of search engines | [Deploy](/docs/admin/deploy/#preview-builds) |
| Let readers comment at the end of a page | [Comments](/docs/admin/comments/) |
| Count visits with Google Analytics, Plausible or another service | [Analytics and SEO](/docs/admin/analytics/) |
| Check that search engines index the site correctly | [Analytics and SEO](/docs/admin/analytics/#indexing) |
| Upgrade OINK, or migrate from Docsy or OINK 0.4 | [Upgrade](/docs/admin/upgrade/) |
| Fix a build error, empty search results or a 404 | [Troubleshooting](/docs/admin/troubleshooting/) |

---

Section pages:

- [Local preview](/docs/admin/preview/): Watch your changes render as you save with hugo server, then build the public/ directory you deploy.
- [Deploy](/docs/admin/deploy/): Publish public/ to GitHub Pages, Cloudflare Pages or any static host, with the right baseURL, CI settings, security policy, checks and rollback.
- [Comments](/docs/admin/comments/): Add a comment thread to each page with giscus and GitHub Discussions, choose which pages carry one, and match it to the site's colors.
- [Analytics and SEO](/docs/admin/analytics/): Connect Google Analytics or another service if you want visit counts, and check the canonical, hreflang, social-card, sitemap and robots output search engines read.
- [Upgrade](/docs/admin/upgrade/): Move a site to a newer OINK release, or migrate it from OINK 0.4 or Docsy, with a rollback path at every step.
- [Troubleshooting](/docs/admin/troubleshooting/): Find the cause and fix of a build, language, search or hosting problem from its symptom, and check a site before you publish it.

---

Backlinks:

- [Customization](/docs/customize/)
