Allow Umami to be configured with UMAMI_DATABASE_URL

This commit is contained in:
Luiz Eduardo Kowalski 2025-01-08 10:52:10 -03:00
parent bce70c1034
commit acc3f10284
4 changed files with 10 additions and 7 deletions

View file

@ -19,7 +19,10 @@ function checkMissing(vars) {
}
if (!process.env.SKIP_DB_CHECK && !process.env.DATABASE_TYPE) {
checkMissing(['DATABASE_URL']);
if (!process.env.UMAMI_DATABASE_URL && !process.env.DATABASE_URL) {
console.log('Neither UMAMI_DATABASE_URL nor DATABASE_URL is defined.');
process.exit(1);
}
}
if (process.env.CLOUD_MODE) {