fix: init a blank site if "source" volume is empty

This commit is contained in:
3wc 2022-07-11 13:18:21 +01:00
parent f2677d4a6b
commit 2a51ec4473
1 changed files with 2 additions and 1 deletions

View File

@ -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: