Browse Source

Have less downtime.

master
Niels G. W. Serup 2 months ago
parent
commit
88bd7a25fe
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      scripts/transform-site.sh

+ 6
- 3
scripts/transform-site.sh View File

@@ -6,13 +6,16 @@ set -e # Exit on first error.

cd "$(dirname "$0")/.."

rm -rf web-serve
mkdir web-serve
mkdir web-serve-new

for file in $(cd site; find -type f); do
file="$(echo $file | sed -r 's/^\.\/?//')"
dir="$(dirname $file)"
outdir="web-serve/$dir"
outdir="web-serve-new/$dir"
mkdir -p "$outdir"
./scripts/transform-file.py "site/$file" "$outdir"
done

mv web-serve web-serve-old
mv web-serve-new web-serve
rm -rf web-serve-old

Loading…
Cancel
Save