From f36cc3fc48299601bf585a3ee09f7ab548b1660e Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 12 Apr 2021 12:33:13 +0200 Subject: added build script --- scripts/build | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/build diff --git a/scripts/build b/scripts/build new file mode 100755 index 0000000..8e95897 --- /dev/null +++ b/scripts/build @@ -0,0 +1,19 @@ +#!/bin/sh + +web_root=/home/loek/gert + +cd $(dirname $0) + +echo "> generating posts.json..." +./genposts + +cd .. + +echo "> building static files..." +npx next build + +echo "> exporting static files..." +npx next export + +echo "> moving static files to $web_root..." +mv out $web_root -- cgit v1.2.3