mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +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
|
|
@ -4,7 +4,7 @@ const fse = require('fs-extra');
|
|||
const path = require('path');
|
||||
const del = require('del');
|
||||
|
||||
function getDatabaseType(url = process.env.DATABASE_URL) {
|
||||
function getDatabaseType(url = process.env.UMAMI_DATABASE_URL || process.env.DATABASE_URL) {
|
||||
const type = process.env.DATABASE_TYPE || (url && url.split(':')[0]);
|
||||
|
||||
if (type === 'postgres') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue