Skip to content

Commit d795b44

Browse files
committed
🔧(backend) allow overwriting the data directory
Deployments that don't rely on Docker should be given the option to use a different data directory. Signed-off-by: Martin Weinelt <[email protected]>
1 parent 419079a commit d795b44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to
1212

1313
- 🚸(backend) make document search on title accent-insensitive #874
1414
- 🚩 add homepage feature flag #861
15+
- 🔧(backend) allow overwriting the data directory #893
1516

1617

1718
## [3.1.0] - 2025-04-07

src/backend/impress/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# Build paths inside the project like this: BASE_DIR / 'subdir'.
2525
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
26-
DATA_DIR = os.path.join("/", "data")
26+
DATA_DIR = os.getenv("DATA_DIR", os.path.join("/", "data"))
2727

2828

2929
def get_release():

0 commit comments

Comments
 (0)