Added check for REDIS_URL. Closes #3677.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user