mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Update database detection.
This commit is contained in:
parent
07cc61f5c3
commit
7a81dda7b6
3 changed files with 6 additions and 3 deletions
|
|
@ -2,7 +2,8 @@ require('dotenv').config();
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const databaseType = process.env.DATABASE_TYPE || process.env.DATABASE_URL.split(':')[0];
|
||||
const databaseType =
|
||||
process.env.DATABASE_TYPE || (process.env.DATABASE_URL && process.env.DATABASE_URL.split(':')[0]);
|
||||
|
||||
if (!databaseType) {
|
||||
throw new Error('Database schema not specified');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue