mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
cleanup demo mode code
This commit is contained in:
parent
b2ff6b6098
commit
7e0272077b
1 changed files with 0 additions and 7 deletions
|
@ -62,13 +62,6 @@ const port = parseInt(process.env.PORT || args.port || 3001);
|
||||||
const sslKey = process.env.SSL_KEY || args["ssl-key"] || undefined;
|
const sslKey = process.env.SSL_KEY || args["ssl-key"] || undefined;
|
||||||
const sslCert = process.env.SSL_CERT || args["ssl-cert"] || undefined;
|
const sslCert = process.env.SSL_CERT || args["ssl-cert"] || undefined;
|
||||||
|
|
||||||
// Demo Mode?
|
|
||||||
const demoMode = args["demo"] || false;
|
|
||||||
|
|
||||||
if (demoMode) {
|
|
||||||
console.log("==== Demo Mode ====");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Data Directory (must be end with "/")
|
// Data Directory (must be end with "/")
|
||||||
Database.dataDir = process.env.DATA_DIR || args["data-dir"] || "./data/";
|
Database.dataDir = process.env.DATA_DIR || args["data-dir"] || "./data/";
|
||||||
Database.path = Database.dataDir + "kuma.db";
|
Database.path = Database.dataDir + "kuma.db";
|
||||||
|
|
Loading…
Reference in a new issue