fix skrypt

This commit is contained in:
Mateusz Gruszczyński
2025-08-02 00:40:07 +02:00
parent c2b6f38c47
commit 511e38cd3e

View File

@@ -1,10 +1,16 @@
import os
import socket
import time
import sys # dodaj import sys
db_engine = os.environ.get("DB_ENGINE", "mysql").lower()
if db_engine == "sqlite":
print("SQLite - koncze oczekiwanie na baze..")
sys.exit(0)
host = os.environ.get("DB_HOST", "mysql")
port = int(os.environ.get("DB_PORT", 3306))
print(f"Czekam na bazę danych {host}:{port}...")
while True: