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:
|
||||
- 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:
|
||||
|
|
Loading…
Reference in New Issue