NODE_ENV if not set, change to production
This commit is contained in:
parent
069c811af8
commit
3234aec5b3
|
@ -1,4 +1,9 @@
|
||||||
console.log("Welcome to Uptime Kuma");
|
console.log("Welcome to Uptime Kuma");
|
||||||
|
|
||||||
|
if (! process.env.NODE_ENV) {
|
||||||
|
process.env.NODE_ENV = "production";
|
||||||
|
}
|
||||||
|
|
||||||
console.log("Node Env: " + process.env.NODE_ENV);
|
console.log("Node Env: " + process.env.NODE_ENV);
|
||||||
|
|
||||||
const { sleep, debug, TimeLogger, getRandomInt } = require("../src/util");
|
const { sleep, debug, TimeLogger, getRandomInt } = require("../src/util");
|
||||||
|
|
Loading…
Reference in New Issue