From af37843df393c88ad26c5caa751c56dc4f2be94a Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Mon, 31 Jul 2023 13:21:57 +0530 Subject: [PATCH] fix: Fix missing cloud services URL when env variable is empty (#25838) When `APPSMITH_CLOUD_SERVICES_BASE_URL` is an empty string, Spring's interpolation in `application.properties` doesn't take the default value. This PR sets up the `entrypoint.sh` script so that it'll `unset` this env variable, when it's empty. --- deploy/docker/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/docker/entrypoint.sh b/deploy/docker/entrypoint.sh index 5a19fe292e..5295bbb835 100644 --- a/deploy/docker/entrypoint.sh +++ b/deploy/docker/entrypoint.sh @@ -138,6 +138,10 @@ unset_unused_variables() { unset APPSMITH_RECAPTCHA_SECRET_KEY unset APPSMITH_RECAPTCHA_ENABLED fi + + if [[ -z "${APPSMITH_CLOUD_SERVICES_BASE_URL-}" ]]; then + unset APPSMITH_CLOUD_SERVICES_BASE_URL + fi } check_mongodb_uri() {