Read the blog post.
Scaffolded from Gizra/drupal-starter.
Note that the demo app assumes you also have mkcert installed as part of ddev.
ddev composer install
cp .ddev/config.local.yaml.example .ddev/config.local.yaml
ddev restart
ddev robo snapshot:create
Command will:
- Clear cache.
- Export Static site.
- Create Elasticsearch index clone with a unique identifier (timestamp).
- Add the new Elasticsearch index url to the JS file of the Elm app.
As the Robo command will indicate, you can view the static site by running:
ddev . npx http-server ../.wget-export/drupal-static-elasticsearch.ddev.site+4443/
This will start a local http-server, and indicate the URL you can open to view the site.