fixed .env stuff
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
PORT=4040
|
||||
SERVER_ROOT=/climate
|
||||
MYSQL_ADDRESS=192.168.0.198
|
||||
MYSQL_USERNAME=admin
|
||||
MYSQL_PW=sekna123jk
|
||||
SENSOR_PING_INTERVAL=30
|
||||
@@ -5,7 +5,7 @@ import {setupCollections} from "./Collections";
|
||||
import path from "path";
|
||||
import {startSensorPinger} from "./pingSensors";
|
||||
|
||||
dotenv.config({ path: path.resolve(__dirname + "./.env") });
|
||||
dotenv.config({ path: path.resolve(__dirname + "/.env") });
|
||||
const SERVER_ROOT = process.env.SERVER_ROOT ?? "/";
|
||||
|
||||
async function main() {
|
||||
|
||||
Reference in New Issue
Block a user