Skip to content

Commit d70c3c8

Browse files
committed
Working on refactor for better deployment
1 parent d072035 commit d70c3c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@
152152
)
153153

154154

155-
BASE_DIR = pathlib.Path(__file__).resolve().parent.parent
155+
BASE_DIR = os.environ.get('UMAP_BASE_DIR', '/app')
156156

157-
STATIC_URL = '/static/'
158-
STATIC_ROOT = BASE_DIR / 'staticfiles'
157+
STATIC_URL = f"{BASE_DIR}/static/"
158+
STATIC_ROOT = f"{BASE_DIR}/staticfiles"
159159
STATICFILES_DIRS = [
160-
BASE_DIR / 'custom' / 'static',
160+
BASE_DIR, f"{BASE_DIR}/custom", f"{BASE_DIR}/static"
161161
]

0 commit comments

Comments
 (0)