WICHTIG: DB_PATH per ENV ueberschreibbar; data-Symlink aus Repo entfernt
Verhindert dass Staging und Live versehentlich dieselbe DB nutzen (Symlink data wurde frueher beim git clone mitgeklont und zeigte auf das gleiche physische Verzeichnis /home/claude-dev/osint-data). Staging muss jetzt DB_PATH in der .env explizit setzen.
Dieser Commit ist enthalten in:
@@ -10,7 +10,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
DATA_DIR = os.path.join(BASE_DIR, "data")
|
||||
LOG_DIR = os.path.join(BASE_DIR, "logs")
|
||||
STATIC_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "static")
|
||||
DB_PATH = os.path.join(DATA_DIR, "osint.db")
|
||||
DB_PATH = os.environ.get("DB_PATH") or os.path.join(DATA_DIR, "osint.db")
|
||||
|
||||
# JWT
|
||||
_JWT_SECRET = os.environ.get("JWT_SECRET", "")
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren