aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-12 17:07:44 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-12 17:07:44 +0200
commit89601011b4eb6b98697df3dea0050315a8204e0b (patch)
tree5a812b7c078f0fe885c5a34921d3ea61d170f635
parentf67a9d2caf5dea0993c920fdde5c7bcb61985ee9 (diff)
build v3
-rwxr-xr-xscripts/build6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build b/scripts/build
index 8491e0f..b9c5dd0 100755
--- a/scripts/build
+++ b/scripts/build
@@ -15,6 +15,12 @@ npx next build
echo "-> exporting static files..."
npx next export
+echo "-> cleaning $web_root..."
+rm -rf $web_root/*
+
echo "-> moving static files to $web_root..."
cp -rv out/* $web_root
+
+echo "-> cleaning out directory..."
rm -rfv out
+