Added check for REDIS_URL. Closes #3677.
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run

This commit is contained in:
Mike Cao 2025-11-10 21:08:55 -08:00
parent 8787764e0e
commit 592f7c0ae7
3 changed files with 5 additions and 2 deletions

View file

@ -6,7 +6,6 @@ services:
- "3000:3000"
environment:
DATABASE_URL: postgresql://umami:umami@db:5432/umami
DATABASE_TYPE: postgresql
APP_SECRET: replace-me-with-a-random-string
depends_on:
db:

View file

@ -36,6 +36,10 @@ async function checkEnv() {
} else {
success('DATABASE_URL is defined.');
}
if (process.env.REDIS_URL) {
success('REDIS_URL is defined.');
}
}
async function checkConnection() {

View file

@ -45,7 +45,7 @@
if (excludeSearch) u.search = '';
if (excludeHash) u.hash = '';
return u.toString();
} catch (e) {
} catch {
return raw;
}
};