From 91ce35dadd150f869ce80e9854bbcbf9c32b0b14 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 3 Jul 2022 16:39:18 +0100 Subject: [PATCH] feat: add bootstrap script --- _scripts/bootstrap.sh | 14 ++++++++++++++ client/.example.env | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100755 _scripts/bootstrap.sh create mode 100644 client/.example.env diff --git a/_scripts/bootstrap.sh b/_scripts/bootstrap.sh new file mode 100755 index 000000000..b1342d841 --- /dev/null +++ b/_scripts/bootstrap.sh @@ -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 \ No newline at end of file diff --git a/client/.example.env b/client/.example.env new file mode 100644 index 000000000..7d0cc037c --- /dev/null +++ b/client/.example.env @@ -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 \ No newline at end of file