This is a very simple domain placeholder. It is intended to be used as a placeholder for a domain that is not yet ready to be deployed.
envsubst
(fromgettext
)rsync
(optional)
-
Clone this repository
-
Copy
.env.example
to.env
and edit the values to match your environment. -
Run
envsubst < index.template.html > index.html
to substitute the environment variables. Alternatively, you can usedocker-compose run --rm envsubst
, or with plain Docker:docker run --rm -v $(pwd):/app -w /app alpine:3.16 sh -c "apk add --no-cache gettext && envsubst < index.template.html > /app/dist/index.html"
-
Copy
dist/index.html
to your web server. You can usersync
to copy the file to your web server, e.g.rsync -avz dist/index.html user@host:/path/to/web/root/
.