diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-12 12:33:13 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-12 12:33:13 +0200 |
commit | f36cc3fc48299601bf585a3ee09f7ab548b1660e (patch) | |
tree | 2404cff473066b99c0f698da92f6dab98357633e /scripts/build | |
parent | ffa1533a191bf09ea5934e8821de7d26275f8521 (diff) |
added build script
Diffstat (limited to 'scripts/build')
-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 |