forked from coop-cloud/hugo
fix: init a blank site if "source" volume is empty
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user