macOS and Linux
Add the short name to your shell profile and reload it. Works in zsh, the default on macOS, and in bash, the default on most Linux systems. Open the Terminal app, paste the line and press Enter.
echo 'heron() { docker run --rm -it -p 8000:8000 -v "$PWD":/site -w /site --user $(id -u):$(id -g) ghcr.io/fmstm/heron:prod "$@"; }' >> ~/.zshrc && source ~/.zshrc && heron --version
- What you should see
- The last command prints the HERON version, branch and build time. The first run downloads the image, which takes a minute.
- bash instead of zsh? Replace
~/.zshrcwith~/.bashrcin both places. Not sure which one you have?echo $SHELLprints it. - Port 8000
- Lets you open the preview at
localhost:8000. If another program uses it, change both numbers, for example to-p 8001:8000. - Docker must be running
- On macOS start Docker Desktop first: the whale icon in the menu bar means it is ready.
- Nothing breaks
- The line only adds a short name; delete it from the profile file to remove it.