ai generated solutions to our ai generated problems
This commit is contained in:
@@ -149,11 +149,11 @@ TSS_BATTLES_DB="$WD/tss_battles.db" TSS_TEAMS_DB="$WD/tss_teams.db" \
|
||||
VEHICLE_TRANSLATIONS_JSON="$WD/vt.json" VEHICLE_DATA_CACHE_JSON="$WD/vc.json" \
|
||||
BACKEND_PORT="$BE_PORT" "$BIN" >/tmp/vgd_be.log 2>&1 &
|
||||
BE_PID=$!
|
||||
# Override PUBLIC_ORIGIN/comingsoon so the server's same-origin guard accepts the
|
||||
# localhost test origin and serves normally. server.cjs's loadEnvFile only fills
|
||||
# unset/empty vars, so these non-empty values win over the prod .env.
|
||||
# Override PUBLIC_ORIGIN so the server's same-origin guard accepts the localhost
|
||||
# test origin. server.cjs's loadEnvFile only fills unset/empty vars, so these
|
||||
# non-empty values win over the prod .env.
|
||||
PORT="$WEB_PORT" API_UPSTREAM="http://127.0.0.1:$BE_PORT" VEHICLE_ICONS_DIR="$ICONS" \
|
||||
UPTIME_STORAGE_DIR="$STORE" PUBLIC_ORIGIN="http://localhost:$WEB_PORT" comingsoon="FALSE" \
|
||||
UPTIME_STORAGE_DIR="$STORE" PUBLIC_ORIGIN="http://localhost:$WEB_PORT" \
|
||||
node "$WEB_REPO/server.cjs" >/tmp/vgd_web.log 2>&1 &
|
||||
WEB_PID=$!
|
||||
# wait for both to listen
|
||||
|
||||
Reference in New Issue
Block a user