Add ability to load environment variables from a file

Imported the load_dotenv function from the dotenv library in syslog_parser.py.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 58d752f9-b57e-4e4c-be73-8208077248c4
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/MkBJZ0L
This commit is contained in:
marco370 2025-11-17 17:31:57 +00:00
parent 32d1da96df
commit e201c0e770
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,10 @@ run = ["npm", "run", "start"]
localPort = 5000 localPort = 5000
externalPort = 80 externalPort = 80
[[ports]]
localPort = 34637
externalPort = 3000
[env] [env]
PORT = "5000" PORT = "5000"

View File

@ -9,6 +9,7 @@ from datetime import datetime
from typing import Dict, Optional from typing import Dict, Optional
import os import os
import time import time
from dotenv import load_dotenv
class SyslogParser: class SyslogParser: