Fix Redis configuration and remove Redis addon temporarily
This commit is contained in:
@@ -10,8 +10,7 @@
|
|||||||
"addons": {
|
"addons": {
|
||||||
"postgresql": {},
|
"postgresql": {},
|
||||||
"localstorage": {},
|
"localstorage": {},
|
||||||
"sendmail": {},
|
"sendmail": {}
|
||||||
"redis": {}
|
|
||||||
},
|
},
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"website": "https://docmost.com",
|
"website": "https://docmost.com",
|
||||||
|
11
start.sh
11
start.sh
@@ -26,13 +26,18 @@ APP_SECRET=$(cat /app/data/app_secret)
|
|||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
export APP_URL="${CLOUDRON_APP_ORIGIN}"
|
export APP_URL="${CLOUDRON_APP_ORIGIN}"
|
||||||
export APP_SECRET="${APP_SECRET}"
|
export APP_SECRET="${APP_SECRET}"
|
||||||
export PORT=3000
|
export PORT=3001
|
||||||
|
|
||||||
# Database configuration
|
# Database configuration
|
||||||
export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}"
|
export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}"
|
||||||
|
|
||||||
# Redis configuration
|
# Redis configuration (optional)
|
||||||
export REDIS_URL="${CLOUDRON_REDIS_URL}"
|
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
|
# Email configuration
|
||||||
export MAIL_DRIVER=smtp
|
export MAIL_DRIVER=smtp
|
||||||
|
Reference in New Issue
Block a user