diff options
-rwxr-xr-x | scripts/build | 19 |
1 files changed, 19 insertions, 0 deletions
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 |