diff --git a/server/.env b/server/src/.env similarity index 100% rename from server/.env rename to server/src/.env diff --git a/server/src/main.ts b/server/src/main.ts index 03af2e0..6e37d07 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -5,7 +5,7 @@ import {setupCollections} from "./Collections"; import path from "path"; import {startSensorPinger} from "./pingSensors"; -dotenv.config(); +dotenv.config({ path: path.resolve(__dirname + "./.env") }); const SERVER_ROOT = process.env.SERVER_ROOT ?? "/"; async function main() {