made deploy atomic with symlink switch
This commit is contained in:
parent
e951246a70
commit
25d1088227
2 changed files with 12 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,4 +4,5 @@ css/code.css
|
||||||
pgvv/
|
pgvv/
|
||||||
all_chars.txt
|
all_chars.txt
|
||||||
**/fonts/**/*-Subset.*
|
**/fonts/**/*-Subset.*
|
||||||
woff2/
|
woff2/
|
||||||
|
**/serve_*
|
||||||
|
|
12
build.sh
12
build.sh
|
@ -10,8 +10,6 @@ if ! [[ -d pgvv/ ]]; then
|
||||||
deactivate
|
deactivate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find acl.cool/serve/ ytheleus.org/serve/ -type f -mmin +11 -delete
|
|
||||||
|
|
||||||
function soup_config {
|
function soup_config {
|
||||||
rm soupault.toml
|
rm soupault.toml
|
||||||
cp ../soupault.toml soupault.toml
|
cp ../soupault.toml soupault.toml
|
||||||
|
@ -60,10 +58,20 @@ pygmentize -f html -S algol_nu | grep -v 'line-height' >css/code.css
|
||||||
builtin pushd acl.cool
|
builtin pushd acl.cool
|
||||||
soup_config
|
soup_config
|
||||||
soupault
|
soupault
|
||||||
|
|
||||||
|
NEXT_DIR="serve_$(date +%s)"
|
||||||
|
cp -a serve "$NEXT_DIR"
|
||||||
|
ln -sfn "$NEXT_DIR" serve_
|
||||||
|
|
||||||
popd
|
popd
|
||||||
builtin pushd ytheleus.org
|
builtin pushd ytheleus.org
|
||||||
soup_config
|
soup_config
|
||||||
soupault
|
soupault
|
||||||
|
|
||||||
|
NEXT_DIR="serve_$(date +%s)"
|
||||||
|
cp -a serve "$NEXT_DIR"
|
||||||
|
ln -sfn "$NEXT_DIR" serve_
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
deactivate
|
deactivate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue