Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Added check for REDIS_URL. Closes #3677.

Mike Cao592f7c0ae728
diff --git a/docker-compose.yml b/docker-compose.yml
index 8c8a47a6e..348c294ca 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -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:
diff --git a/scripts/check-db.js b/scripts/check-db.js
index 7c7daaa11..09577699d 100644
--- a/scripts/check-db.js
+++ b/scripts/check-db.js
@@ -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() {
diff --git a/src/tracker/index.js b/src/tracker/index.js
index c4c420b6c..18b3ff89f 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -45,7 +45,7 @@
if (excludeSearch) u.search = '';
if (excludeHash) u.hash = '';
return u.toString();
- } catch (e) {
+ } catch {
return raw;
}
};