Use separate dirs for building in demo.sh and staging.sh [skip ci]

Otherwise if you happen to be using `hugo serve` at the same time, it
overwrites stuff and messes up your live preview until you rebuild
(restart the hugo serve server)
This commit is contained in:
2025-07-02 02:13:44 -05:00
parent 86a03a676a
commit d450249171
3 changed files with 8 additions and 4 deletions

4
.gitignore vendored
View File

@ -16,3 +16,7 @@ hugo.linux
# End of https://www.toptal.com/developers/gitignore/api/hugo
/.hugo_build.lock
# used in demo.sh and staging.sh
/public.demo/
/public.staging/

View File

@ -1,4 +1,4 @@
#!/bin/sh -ex
./audit.sh
./build.sh --baseURL "https://demo.bbaovanc.com/test/$1"
rsync -avPzc --delete-delay public/ bbaosrv:/var/www/demo.bbaovanc.com/test/$1/
DEST=public.demo/ ./build.sh --baseURL "https://demo.bbaovanc.com/test/$1"
rsync -avPzc --delete-delay public.demo/ bbaosrv:/var/www/demo.bbaovanc.com/test/$1/

View File

@ -1,4 +1,4 @@
#!/bin/sh -ex
./audit.sh
./build.sh --baseURL "https://demo.bbaovanc.com/staging/$1"
rsync -avPzc --delete-delay public/ bbaosrv:/var/www/demo.bbaovanc.com/staging/$1/
DEST=public.staging/ ./build.sh --baseURL "https://demo.bbaovanc.com/staging/$1"
rsync -avPzc --delete-delay public.staging/ bbaosrv:/var/www/demo.bbaovanc.com/staging/$1/