diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CommonDBConfig.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CommonDBConfig.java index b7bd7a52f1..662777fb30 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CommonDBConfig.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CommonDBConfig.java @@ -30,7 +30,8 @@ public class CommonDBConfig { @Primary @Profile("!test") public MongoProperties configureMongoDB() { - if (!appsmithDbUrl.startsWith("mongodb")) { + log.debug("Configuring MongoDB with url: {}", appsmithDbUrl); + if (!appsmithDbUrl.contains("mongodb")) { return null; } log.info("Found MongoDB uri configuring now"); diff --git a/deploy/docker/fs/opt/appsmith/entrypoint.sh b/deploy/docker/fs/opt/appsmith/entrypoint.sh index 2bf6be004e..76ce9d2c63 100644 --- a/deploy/docker/fs/opt/appsmith/entrypoint.sh +++ b/deploy/docker/fs/opt/appsmith/entrypoint.sh @@ -183,6 +183,7 @@ configure_database_connection_url() { elif [[ "${APPSMITH_DB_URL}" == "mongodb"* ]]; then isMongoUrl=1 fi + echo "Configured database connection URL is $APPSMITH_DB_URL" } check_db_uri() {