aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-12 16:48:03 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-12 16:48:03 +0200
commitaeb750df64f1f1a8ad9e85df1a672eb62c7439f3 (patch)
tree9f75f5a71bf48add4cd693b3d8e190dd904a5919
parent92dcfb1a7c8daf18e36442e3a93d8d301f8f6200 (diff)
edit build script to work now
-rwxr-xr-xscripts/build11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/build b/scripts/build
index 9a7dd63..e1dfc26 100755
--- a/scripts/build
+++ b/scripts/build
@@ -4,16 +4,17 @@ web_root=/var/www/blog
cd $(dirname $0)
-echo "> generating posts.json..."
+echo "-> generating posts.json..."
./genposts
cd ..
-echo "> building static files..."
+echo "-> building static files..."
npx next build
-echo "> exporting static files..."
+echo "-> exporting static files..."
npx next export
-echo "> moving static files to $web_root..."
-mv out $web_root
+echo "-> moving static files to $web_root..."
+mv -v out/* $web_root
+rm -rfv out