Use Herd to set up a simple Statamic site on a Mac
On this page
Last Friday I pulled my Statamic starter into its own repository and scaffolded a small nonprofit's site from it the same afternoon. Both repos have an initial commit on 2025-10-24. Setting the new site up locally took less time than writing this post, and the reason is that a Statamic site on Herd is a folder and almost nothing else.
Here is what that setup actually is on my Mac, step by step, with the parts the starter's README skips.
Herd is the web server, PHP and Composer
Herd is a Mac app that runs nginx, a set of PHP versions and dnsmasq for a .test top-level domain. which php on my machine points into Herd's bin folder, and so do composer and the herd command itself. There is no Homebrew PHP in the picture, which was the whole point of switching. The agency's starter README has listed Herd as the first requirement since April 2024, and my own starter copied that list.
The one thing I did once, in Herd's settings, was park my ~/webdev folder. A parked folder means every directory inside it is already a site: ~/webdev/example-site answers at http://example-site.test the moment it exists. The README tells you to run herd link {sitename}, and that still works, but with a parked folder you only need it when the hostname should differ from the folder name. The flip side is that the folder name is the hostname. Rename the folder and the URL changes with it.
The eight steps
The README's steps come down to this:
git clone <repo> example-site && cd example-site
cp .env.example .env
composer install
php artisan key:generate
nvm use
npm install
npm run dev
Herd needs to be on the PHP version composer.json requires, or newer. Herd ships every version I have needed, and switching the global one is a menu click.
composer install does more than install. The starter's post-autoload-dump script runs php artisan statamic:install, so the Statamic side is wired up by the time Composer returns. If you create the project with composer create-project instead of cloning, the post-create-project-cmd script also generates the app key and touches the SQLite file for you.
Then edit .env. The example ships with APP_URL=http://localhost, and I change it to the .test address, because anything that builds an absolute URL (SEO Pro's sitemap and canonical tags, for one) should match what is in the browser. The first user is a command, not a database row:
php please make:user
That writes a YAML file under users/, because config/statamic/users.php has 'repository' => 'file'.
There is no database step
This is the part that surprises people coming from Craft or WordPress. The starter's .env.example reads:
DB_CONNECTION=sqlite
SESSION_DRIVER=file
CACHE_STORE=file
QUEUE_CONNECTION=sync
Content is Markdown and YAML in content/, users are YAML, form submissions are files under storage/forms, and sessions and cache are files. Laravel still wants a database connection configured, so the starter points it at database/database.sqlite and the create-project script touches that file. Nothing in the starter's default configuration writes to it, so running the default migrations or skipping them makes no difference to the site. I have never had to install MySQL for one of these. Herd's free tier does not bundle a database server, and for Statamic that is not a limitation.
The consequence that matters is that the content I create locally is the content. It is committed with the code, git pull brings down what an editor changed on the live site, and a large content change can be made in an editor and pushed. The README spells out the production half of that, the Git automation settings (STATAMIC_GIT_ENABLED, STATAMIC_GIT_PUSH, a dispatch delay on a Redis queue) that commit what editors do in the control panel so it does not get overwritten by the next deploy.
Two things to know
Moving a folder. Statamic's Stache caches absolute file paths. After renaming or moving a site folder, run php please stache:clear before you spend time reading an error that mentions a navigation or collection that plainly exists.
502 from Herd. Very occasionally a site returns a bare 502 and nothing in the logs explains it. herd restart fixes it, and nothing in the project is wrong.
HTTPS when you need it
Most of the time I leave sites on plain HTTP locally. When something needs TLS, herd secure run inside the folder issues a local certificate and nginx config for that one site, and herd secured lists which ones have it. Only a few of my sites have it; the rest are HTTP and nobody notices.
The short version: park the folder, copy the env file, composer install, make a user. The things you would normally do next, create the database, import a dump, run migrations, do not exist for a flat-file site. That is why I reach for Statamic for the small sites, and why the local setup is the least interesting part of the project.