From 675c6fa1c83a2db3150e4dbb6750d0672ad035a7 Mon Sep 17 00:00:00 2001 From: Andreas Dueren Date: Mon, 14 Jul 2025 21:31:09 -0600 Subject: [PATCH] Fix Redis configuration and remove Redis addon temporarily --- CloudronManifest.json | 3 +-- start.sh | 11 ++++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index ad642b5..3fc324d 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -10,8 +10,7 @@ "addons": { "postgresql": {}, "localstorage": {}, - "sendmail": {}, - "redis": {} + "sendmail": {} }, "manifestVersion": 2, "website": "https://docmost.com", diff --git a/start.sh b/start.sh index 8814c30..f6720eb 100644 --- a/start.sh +++ b/start.sh @@ -26,13 +26,18 @@ APP_SECRET=$(cat /app/data/app_secret) export NODE_ENV=production export APP_URL="${CLOUDRON_APP_ORIGIN}" export APP_SECRET="${APP_SECRET}" -export PORT=3000 +export PORT=3001 # Database configuration export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}" -# Redis configuration -export REDIS_URL="${CLOUDRON_REDIS_URL}" +# Redis configuration (optional) +if [ -n "${CLOUDRON_REDIS_URL:-}" ]; then + export REDIS_URL="${CLOUDRON_REDIS_URL}" + echo "=> Redis configured" +else + echo "=> Redis not configured - collaborative features may be limited" +fi # Email configuration export MAIL_DRIVER=smtp