mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 12:35:38 +01:00
Allow Umami to be configured with UMAMI_DATABASE_URL
This commit is contained in:
parent
bce70c1034
commit
acc3f10284
4 changed files with 10 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue