From d9b1a3267328d4396cacde543e287d6f74a4fefb Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Fri, 29 Nov 2024 15:55:27 +0530 Subject: [PATCH] chore: Always get version from $backend (#37857) --- app/client/start-https.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/client/start-https.sh b/app/client/start-https.sh index 8301a1369c..aaf0ac8025 100755 --- a/app/client/start-https.sh +++ b/app/client/start-https.sh @@ -86,13 +86,11 @@ if [[ ${backend-} == release ]]; then backend=https://release.app.appsmith.com fi -if [[ ${backend-} == *.appsmith.com ]]; then - # If running client against release, we get the release's version and set it up, so we don't see version mismatches. - APPSMITH_VERSION_ID="$( - curl -sS "$backend/info" | grep -Eo '"version": ".+?"' | cut -d\" -f4 - )" - export APPSMITH_VERSION_ID -fi +# Try to get a version from the "backend". If it's a full container, not just backend, then it'll give us a version. +APPSMITH_VERSION_ID="$( + curl -sS "${backend/host.docker.internal/localhost}/info" | grep -Eo '"version": ".+?"' | cut -d\" -f4 +)" +export APPSMITH_VERSION_ID if [[ -z ${run_as-} ]]; then if type nginx; then