chore: Always get version from $backend (#37857)
This commit is contained in:
parent
1c344b7433
commit
d9b1a32673
|
|
@ -86,13 +86,11 @@ if [[ ${backend-} == release ]]; then
|
||||||
backend=https://release.app.appsmith.com
|
backend=https://release.app.appsmith.com
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${backend-} == *.appsmith.com ]]; then
|
# Try to get a version from the "backend". If it's a full container, not just backend, then it'll give us a version.
|
||||||
# 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="$(
|
||||||
APPSMITH_VERSION_ID="$(
|
curl -sS "${backend/host.docker.internal/localhost}/info" | grep -Eo '"version": ".+?"' | cut -d\" -f4
|
||||||
curl -sS "$backend/info" | grep -Eo '"version": ".+?"' | cut -d\" -f4
|
)"
|
||||||
)"
|
export APPSMITH_VERSION_ID
|
||||||
export APPSMITH_VERSION_ID
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z ${run_as-} ]]; then
|
if [[ -z ${run_as-} ]]; then
|
||||||
if type nginx; then
|
if type nginx; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user