NO LOCATION AAAAH
This commit is contained in:
1 parent
0f68b09a00
commit
a2746737ce
2 files changed
+13
-10
No files matched your search
@@ -52,6 +52,17 @@ def on_starting(server):
|
||||
"""Called just before the master process is initialized."""
|
||||
print("Studspider WEB starting...")
|
||||
|
||||
# Load .env file before workers start
|
||||
import dotenv
|
||||
from pathlib import Path
|
||||
|
||||
env_path = Path(__file__).parent.parent / ".env"
|
||||
if env_path.exists():
|
||||
dotenv.load_dotenv(env_path)
|
||||
print(f"✓ Loaded environment from {env_path}")
|
||||
else:
|
||||
print(f"⚠ No .env file found at {env_path}")
|
||||
|
||||
|
||||
def on_reload(server):
|
||||
"""Called to recycle workers during a reload via SIGHUP."""
|
||||
|
||||
Reference in new issue
Block a user