From 1e6e4e4dccd4e354775ad165f6c60d0104f5d580 Mon Sep 17 00:00:00 2001 From: Frosty2500 <125310380+Frosty2500@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:58:45 +0200 Subject: [PATCH] app/main.py: Fix default storage_path (#7) Previously, trying to run the container using the tutorial from the `README.md` led to an error, due to a wrongly set default storage path if the environment variable `STORAGE_PATH` is not set. This fixes this issue by setting the default storage path to `/storage` rather than the prior relative path: `storage`. --- server/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/main.py b/server/app/main.py index 6662c868..c502bfbe 100644 --- a/server/app/main.py +++ b/server/app/main.py @@ -8,7 +8,7 @@ from basyx.aas.backend.local_file import LocalFileObjectStore from basyx.aas.adapter.http import WSGIApp -storage_path = os.getenv("STORAGE_PATH", "storage") +storage_path = os.getenv("STORAGE_PATH", "/storage") storage_type = os.getenv("STORAGE_TYPE", "LOCAL_FILE_READ_ONLY") base_path = os.getenv("API_BASE_PATH")