mirror of
https://github.com/BBaoVanC/bbaovanc.com.git
synced 2025-07-04 11:07:32 -05:00
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:
4
.gitignore
vendored
4
.gitignore
vendored
@ -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/
|
||||
|
4
demo.sh
4
demo.sh
@ -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/
|
||||
|
@ -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/
|
||||
|
Reference in New Issue
Block a user