Assets caching, Docker setup, app configured at runtime
robots.txt
)Install dependencies and start dev server
npm i
npm start
Build and run Docker container
docker build -t elm-land-docker-example . &&
docker container run \
-p 1234:80 \
-e WEBAPP_ALLOW_INDEXING="true" \
-e WEBAPP_BACKEND_URL="https://en.wikipedia.org/api" \
elm-land-docker-example
public/nocache/config.json
(and set default value for local development)configs/nginx.on-startup.sh
(see the end of file)src/Shared/Config.elm
(decode and use new values in your Elm app)