forked from coop-cloud/hugo
fix: init a blank site if "source" volume is empty
This commit is contained in:
parent
f2677d4a6b
commit
2a51ec4473
|
@ -9,7 +9,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- src:/src
|
- src:/src
|
||||||
- output:/output
|
- output:/output
|
||||||
command: ["hugo", "-w"]
|
entrypoint: ["/bin/sh"]
|
||||||
|
command: ["-c", "set -x; hugo -w || hugo-official new site /src && hugo -w"]
|
||||||
web:
|
web:
|
||||||
image: httpd:2.4
|
image: httpd:2.4
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue