1
0
forked from baron/baron-sso

레포 업데이트

This commit is contained in:
Lectom C Han
2026-04-01 20:32:09 +09:00
parent 8bab8d44cc
commit 4b0fbdde98
31 changed files with 1636 additions and 43 deletions

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env sh
set -eu
assert_mode() {
script_path="$1"
app_env="$2"
expected="$3"
actual="$(APP_ENV="$app_env" sh "$script_path" --print-mode)"
if [ "$actual" != "$expected" ]; then
echo "script=$script_path APP_ENV=$app_env expected mode=$expected got=$actual" >&2
exit 1
fi
}
for script in \
"./adminfront/scripts/runtime-mode.sh" \
"./devfront/scripts/runtime-mode.sh"
do
assert_mode "$script" "production" "production"
assert_mode "$script" "prod" "production"
assert_mode "$script" "stage" "production"
assert_mode "$script" "staging" "production"
assert_mode "$script" "development" "development"
assert_mode "$script" "dev" "development"
done
echo "frontend runtime mode checks passed"