Skip to content

Commit

Permalink
app/main.py: Fix default storage_path (#7)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Frosty2500 authored Oct 14, 2024
1 parent 32c35b9 commit 1e6e4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 1e6e4e4

Please sign in to comment.