From 2a51ec4473c52aa7a81348053b0fb6871d1e64be Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 11 Jul 2022 13:18:21 +0100 Subject: [PATCH] fix: init a blank site if "source" volume is empty --- compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index fcee1fd..65ff765 100644 --- a/compose.yml +++ b/compose.yml @@ -9,7 +9,8 @@ services: volumes: - src:/src - output:/output - command: ["hugo", "-w"] + entrypoint: ["/bin/sh"] + command: ["-c", "set -x; hugo -w || hugo-official new site /src && hugo -w"] web: image: httpd:2.4 volumes: