This repository allow developer to quickly add and configure Sitediff into a Ddev project
In a Ddev setup, add ddev-sitediff
by running
ddev get https://github.com/robert-ngo/ddev-sitediff/tarball/main
This would add 3 files into local Ddev setup:
docker-compose.sitediff.yaml
: Docker compose setup for sitediffcommands/sitediff/sitediff-build
: to run once, building the sitediff executable inside the containercommands/sitediff/sitediff
: custom Ddev command, bindingsitediff
executable toddev sitediff
ddev sitediff init https://example.com
ddev sitediff crawl # crawl and cache example.com
ddev sitediff diff # diff the previously cached version with the actual version
Given a ./prod-stage/sitediff/sitediff.yaml
and a ./selected-paths.txt
both exist.
ddev sitediff diff -C prod-stage/sitediff/ --paths-file ./selected-paths.txt -e
We include the flag -e
to this command to export report into a report.tgz
. This is currently a temporary solution
while waiting for ddev sitediff serve
to be configured.