Skip to content

Commit

Permalink
chore: Always get version from $backend (#37857)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharat87 authored Nov 29, 2024
1 parent 1c344b7 commit d9b1a32
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/client/start-https.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9b1a32

Please sign in to comment.