aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-04-26 15:45:34 +0200
committerlonkaars <loek@pipeframe.xyz>2021-04-26 15:45:34 +0200
commit3a95ac4ad928fbd49abe070cd9cd4e51e21007fb (patch)
tree13714af399f3996bac9900d0646360ba966ecf35
parent0b506bb440559439c67825dc3ff307dedfc04d4f (diff)
new config script
-rwxr-xr-xconfig22
-rw-r--r--test0
2 files changed, 12 insertions, 10 deletions
diff --git a/config b/config
index 0cc6101..cd8529c 100755
--- a/config
+++ b/config
@@ -43,13 +43,6 @@ voerbak() {
cd ..
}
-build() {
- customize_config
- npx next build
- npx next export
- mv out $CONNECT4_WEB_ROOT
-}
-
all() {
packages
yarn_install
@@ -66,12 +59,21 @@ customize_config() {
sed "s/user nobody/user $(whoami)/" -i ./nginx.conf
}
-prod() {
- sed "s/CONNECT4_DEBUG=1/CONNECT4_DEBUG=0/" -i .env
+build() {
+ customize_config
npx next build
npx next export
+}
+
+install() {
rm -rfv $CONNECT4_WEB_ROOT/*
- mv out/* $CONNECT4_WEB_ROOT
+ mv -v out/* $CONNECT4_WEB_ROOT
+}
+
+prod() {
+ sed "s/CONNECT4_DEBUG=1/CONNECT4_DEBUG=0/" -i .env
+ build
+ install
}
if [[ -z $1 ]]; then
diff --git a/test b/test
deleted file mode 100644
index e69de29..0000000
--- a/test
+++ /dev/null