refactor project structure

This commit is contained in:
Aiden McClelland
2025-12-20 02:55:49 -07:00
parent 7c12b58bb5
commit e859c1adb1
382 changed files with 671 additions and 3952 deletions

16
web/update-config.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
cd "$(dirname ${BASH_SOURCE[0]})"
set -e
if [[ "$(cat ../build/env/ENVIRONMENT.txt)" =~ (^|-)beta($|-) ]]; then
BETA='beta-'
fi
CONFIG=$(if [ -f config.json ]; then cat config.json; else cat config-sample.json; fi)
echo "$CONFIG" \
| jq '.useMocks = false' \
| jq ".gitHash = \"$(cat ../build/env/GIT_HASH.txt)\"" \
| jq ".defaultRegistry = \"https://${BETA}registry.start9.com\"" \
> config.json