Fix deployment_environment default so the debugger reads UAT

project.godot's API URLs already pointed at UAT (us3q.ranaze.com), but
deployment_environment itself was still "development" - a leftover
label that never matched the actual origin. Since the UAT-only feature
gates (Dynamic Questions, CCS Cases, Flashcards) check for the literal
"uat" value, running from the Godot editor/debugger hid all three even
though it's UAT in every other respect.

Set it to "uat" to match reality, and update the two places that
sed-patch this value at build time (web/Dockerfile for the UAT/PRD web
builds, tools/export_steam_release.sh for the Steam build) so they
still match the source string they're replacing.
This commit is contained in:
hz
2026-07-25 00:30:14 -05:00
parent c1a71b1192
commit b7b290c63b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ textures/vram_compression/import_etc2_astc=true
[step3] [step3]
deployment_environment="development" deployment_environment="uat"
questions_api_url="https://us3q.ranaze.com/api/questions/search" questions_api_url="https://us3q.ranaze.com/api/questions/search"
question_reports_api_url="https://us3q.ranaze.com/api/question-reports" question_reports_api_url="https://us3q.ranaze.com/api/question-reports"
app_feedback_api_url="https://us3q.ranaze.com/api/app-feedback" app_feedback_api_url="https://us3q.ranaze.com/api/app-feedback"
+1 -1
View File
@@ -24,7 +24,7 @@ cp "${PROJECT_FILE}" "${BACKUP_FILE}"
BUILD_REVISION="$(git -C "${REPO_ROOT}" rev-parse HEAD)" BUILD_REVISION="$(git -C "${REPO_ROOT}" rev-parse HEAD)"
sed -i \ sed -i \
-e "s|deployment_environment=\"development\"|deployment_environment=\"prd\"|" \ -e "s|deployment_environment=\"uat\"|deployment_environment=\"prd\"|" \
-e "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" \ -e "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" \
-e "s|https://us3q.ranaze.com|https://s3q.ranaze.com|g" \ -e "s|https://us3q.ranaze.com|https://s3q.ranaze.com|g" \
"${PROJECT_FILE}" "${PROJECT_FILE}"
+1 -1
View File
@@ -32,7 +32,7 @@ WORKDIR /src
COPY . . COPY . .
RUN mkdir -p /build \ RUN mkdir -p /build \
&& sed -i "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" project.godot \ && sed -i "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" project.godot \
&& sed -i "s|deployment_environment=\"development\"|deployment_environment=\"${DEPLOYMENT_ENVIRONMENT}\"|" project.godot \ && sed -i "s|deployment_environment=\"uat\"|deployment_environment=\"${DEPLOYMENT_ENVIRONMENT}\"|" project.godot \
&& sed -i "s|https://us3q.ranaze.com|${PUBLIC_API_ORIGIN}|g" project.godot \ && sed -i "s|https://us3q.ranaze.com|${PUBLIC_API_ORIGIN}|g" project.godot \
&& sed -i "s|custom_template/release=\"\"|custom_template/release=\"/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/web_nothreads_release.zip\"|" export_presets.cfg \ && sed -i "s|custom_template/release=\"\"|custom_template/release=\"/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/web_nothreads_release.zip\"|" export_presets.cfg \
&& godot --headless --editor --path /src --quit \ && godot --headless --editor --path /src --quit \