Documentation Index
Fetch the complete documentation index at: https://docs.frankenpress.com/llms.txt
Use this file to discover all available pages before exploring further.
site-template is
a GitHub template repo
for new WordPress sites running on the FrankenPress stack.
Layout
Bedrock-style:What is Bedrock and why use it?
Bedrock is Roots’ opinionated shape for WordPress sites: WordPress is treated as a versioned dependency rather than something you commit, the filesystem is laid out for clean separation of code and runtime data, and configuration lives in one place per environment instead of being scattered acrosswp-config.php and the database.
site-template is Bedrock-style — composer-managed, with the
canonical web/wp + web/app + config/ split — because the whole
FrankenPress proposition (immutable image, declarative deploy) breaks
down without it. There needs to be a clear answer to “what’s code?”
and “what’s data?” before you can confidently bake one into an image
and leave the other in a database / S3 bucket.
What each Roots package does for you
The site composer-requires four small Roots packages. Each one does one thing:| Package | Job |
|---|---|
roots/wordpress | Composer-installable WordPress core — no bundled themes, no sample content. Lands at web/wp/ (gitignored). Lets you treat WP as a versioned dependency. |
roots/wp-config | Thin loader (web/wp-config.php) that defers all config to config/application.php. Single source of truth for site config — plugins can’t mutate it behind your back. |
roots/bedrock-autoloader | Scans web/app/mu-plugins/<dir>/ and loads each one’s main file. Required because WordPress only auto-loads .php files at the root of mu-plugins/, not in subdirectories — and composer-installed mu-plugins always end up in subdirectories. |
roots/bedrock-disallow-indexing | When DISALLOW_INDEXING is true, forces blog_public = 0 (noindex meta + robots.txt Disallow: /) and adds an admin notice with the current WP_ENV. Fires automatically on staging / development, no-ops on production. |
vlucas/phpdotenv
and oscarotero/env
sit alongside — they read .env into $_ENV for local dev and provide
the env('FOO') helper used throughout application.php. In
production the Helm chart sets env vars directly via the ConfigMap,
so .env isn’t loaded at all.
Bedrock vs the other Roots projects
Roots also publishes Sage (modern build tooling for a custom theme) and Trellis (Ansible-based provisioning for Bedrock sites on VMs). Neither is used by FrankenPress:- Sage is theme-side — orthogonal to the site shape. You can use Sage on top of a FrankenPress site if you like; the runtime doesn’t care which theme you ship.
- Trellis is the operational layer Bedrock sites traditionally paired with — VMs, Ansible, Nginx, PHP-FPM. FrankenPress replaces Trellis: containerised single-process runtime, declarative Helm deploy, immutable image. If you’re coming from a Trellis-shaped Bedrock site, FrankenPress is the migration target — keep Bedrock, drop Trellis.
Forking
Use this template
Click Use this template on the repo. Pick a name (e.g.
mysite).Install WordPress
http://localhost:8080/wp/wp-admin/ and log in.This is a one-time step for local Docker Compose dev. The
charts Helm chart
runs wp core install automatically as a post-install hook
Job — that’s a Helm-only mechanism, so the local Compose stack
still needs the manual command above.Adding plugins and themes
Composer-managed (recommended):composer.json. Plugins land in web/app/plugins/, themes in
web/app/themes/.
Custom code (your own theme or plugin): drop a directory under the
right web/app/* subtree and commit it. The .gitignore ignores
composer-installed content but unhides anything you commit explicitly.
Lockdown
The four constants inconfig/application.php are hard-coded —
no env-var override:
production.php:
CI / publishing
GitHub Actions:lint.yml— PHPCS + composer audit on every push and PRbuild.yml— on push to main and onv*.*.*tag, builds the site image and pushes toghcr.io/<your-org>/<your-site>
ghcr.io/<your-org>/<your-site>:v1.0.0.
Deploy with: