We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf84e8a commit 20734b6Copy full SHA for 20734b6
deploy.sh
@@ -6,5 +6,7 @@ set -eu
6
git pull
7
# Update submodules such as the template.
8
git submodule update --init
9
-# Run Hugo using the image
10
-docker compose run -v "$(pwd)/public":/workdir/public site 'hugo'
+# Run Hugo using the image. Extra files in `public/` will be removed.
+docker compose run --remove-orphans --rm \
11
+ -v "$(pwd)/public":/workdir/public site \
12
+ hugo --cleanDestinationDir
0 commit comments