Running a site
Running a site
For whoever keeps the site alive — configuration, people, deploys, backups, upgrades and the commands behind them.
This section is for you if you keep the site alive. At Tidewater that is the developer who also builds it — at a bigger company it might be someone else entirely. It assumes a terminal and a server; it does not assume Ruby. An administrator with only the Control Plane should start at Administering from the Control Plane.
After reading this section, you will know how to configure a site, let people in, deploy it, back it up, take new releases, and move its content around.
1. The guides
| Guide | Covers |
|---|---|
| Configuration | config/nibble.yml, environment variables, credentials, and which setting goes where |
| Users and roles | adding people, what each role may do, and roles of your own |
| Administering from the Control Plane | what an administrator without a terminal can do, and what to ask a developer for |
| Utilities | the Control Plane’s maintenance screens: cache, search, jobs, health, backups and the audit log |
| Webhooks | telling another application when content changes, and how deliveries are signed and retried |
| Check messages | every message nibble:check prints, and how to fix it |
| Deploying | Kamal, secrets, the first deploy, seeding a database, and what each deploy checks |
| Backups | what is backed up, where, and how to restore it |
| Upgrading | taking a release, what it asks, and how to undo it |
| Content packages | keeping content as YAML, and importing it |
| Commands | every command in one place |
| Agent access | letting people connect AI apps, and deciding what those apps may touch |
| The nibble command | starting a site, running its tasks, and working on content from a terminal |
2. A site’s first week
- Install it and build it — Getting Started is the whole of Tidewater’s first day.
- Configure it: the URL, the time zone, image sizes, mail.
- Deploy it and create the first administrator on the server.
- Turn on offsite backups before there is anything in it worth losing.
- Let people in, each with the smallest role that lets them work.
- Check for updates now and then, and take them one at a time.
3. What the site’s repository holds
| Path | What it is | Whose |
|---|---|---|
vendor/nibble/ |
the CMS itself, with its starter theme crumbs |
Nibble’s — replaced whole by each release |
site/themes/<yours>/ |
your theme | yours |
site/schema/ |
your collections, blueprints, forms, migrations | yours |
site/content/ |
content kept as files | yours |
site/cp/ |
Control Plane overrides | yours |
config/nibble.yml, config/deploy.yml, .env |
settings and the deploy | yours |
app/, config/, db/migrate/, test/, Gemfile |
your own Rails code, settings, tests and gems | yours |
Important
Everything under vendor/nibble/ is Nibble’s; everything else is yours. Keep to that and an upgrade never has
anything to refuse. When you need to change something of Nibble’s, see Extending Nibble.