feat: add bootstrap script

This commit is contained in:
zkldi
2022-07-04 02:15:43 +01:00
parent d2da586d85
commit 91ce35dadd
2 changed files with 23 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#! /bin/bash
set -eo pipefail
# https://stackoverflow.com/questions/59895/how-can-i-get-the-directory-where-a-bash-script-is-located-from-within-the-scrip
# if you actually think bash is a good programming language you are
# *straight up delusional*
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR";
cd ..;
cp client/.example.env client/.env
cp server/test.conf.json5 server/conf.json5
+9
View File
@@ -0,0 +1,9 @@
BROWSER="none"
REACT_APP_TCHIC_MODE="omni"
REACT_APP_SERVER_URL="https://127.0.0.1:8080"
REACT_APP_CDN_URL="https://127.0.0.1:8080/cdn"
REACT_APP_IMGSCORE_URL=""
REACT_APP_EAG_CLIENT_ID=""
REACT_APP_MIN_CLIENT_ID=""
REACT_APP_FLO_CLIENT_ID=""
REACT_APP_RULES_READ_TIME=30