From 0b1069663e58fc0ef518b477ca2915bc9ea16f4d Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Wed, 27 Nov 2024 14:11:20 +0530 Subject: [PATCH] chore: Get release's version if needed (#37777) **/test sanity** ## Summary by CodeRabbit - **New Features** - Enhanced script to retrieve and export the Appsmith application version when using a specific release URL. - **Bug Fixes** - Improved error handling and messaging for missing dependencies or incorrect configurations. --- app/client/start-https.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/client/start-https.sh b/app/client/start-https.sh index 5ec92f2e6e..82762756db 100755 --- a/app/client/start-https.sh +++ b/app/client/start-https.sh @@ -86,6 +86,14 @@ if [[ ${backend-} == release ]]; then backend=https://release.app.appsmith.com fi +if [[ $backend == https://release.app.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 + if [[ -z ${run_as-} ]]; then if type nginx; then run_as=nginx