Initialisation du projet avec init de hugo.

Choix du theme nojs.
This commit is contained in:
mathieu
2026-07-19 23:47:59 +02:00
parent 760ac81368
commit 8971d04c88
13 changed files with 292 additions and 1 deletions
Executable
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ ! -f ".env" ]]; then
echo "Erreur : fichier .env introuvable."
exit 1
fi
set -a
source .env
set +a
IMG_NAME="${HUGO_IMAGE}:v${HUGO_VERSION}"
docker run --rm -it \
-p "${HUGO_PORT}:1313" \
--name "${CONTAINER_NAME}" \
-u 0:0 \
-v "${PWD}/${SITE_DIR}:/src" \
-v "${PWD}/${CACHE_DIR}:/tmp/hugo_cache" \
-w /src \
"${IMG_NAME}" \
server \
--buildDrafts \
--cleanDestinationDir \
--bind 0.0.0.0