mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Added check for REDIS_URL. Closes #3677.
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
This commit is contained in:
parent
8787764e0e
commit
592f7c0ae7
3 changed files with 5 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ services:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://umami:umami@db:5432/umami
|
DATABASE_URL: postgresql://umami:umami@db:5432/umami
|
||||||
DATABASE_TYPE: postgresql
|
|
||||||
APP_SECRET: replace-me-with-a-random-string
|
APP_SECRET: replace-me-with-a-random-string
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,10 @@ async function checkEnv() {
|
||||||
} else {
|
} else {
|
||||||
success('DATABASE_URL is defined.');
|
success('DATABASE_URL is defined.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.env.REDIS_URL) {
|
||||||
|
success('REDIS_URL is defined.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function checkConnection() {
|
async function checkConnection() {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
if (excludeSearch) u.search = '';
|
if (excludeSearch) u.search = '';
|
||||||
if (excludeHash) u.hash = '';
|
if (excludeHash) u.hash = '';
|
||||||
return u.toString();
|
return u.toString();
|
||||||
} catch (e) {
|
} catch {
|
||||||
return raw;
|
return raw;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue