Refactor environment-specific configurations and data loading.

Refactored database and server configuration to handle environments (dev, test, prod) explicitly, including tailored database setup and SSL management. Separated slot and sample data loading for better control during initialization. Improved environment variable usage and error handling for production certificates.
This commit is contained in:
GotthardG 2024-12-17 13:15:07 +01:00
parent 19c5d7f880
commit 0f0b7e50cf

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "aareDB"
version = "0.1.0a2"
version = "0.1.0a3"
description = "Backend for next gen sample management system"
authors = [{name = "Guillaume Gotthard", email = "guillaume.gotthard@psi.ch"}]
license = {text = "MIT"}
@ -28,6 +28,7 @@ dependencies = [
"uvicorn==0.23.1",
"python-dateutil~=2.8.2",
"tomli>=2.0.1"
"python-dotenv"
]
[tool.pytest.ini_options]
norecursedirs = ["backend/python-client"]