1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

fix Docker installation bugs

This commit is contained in:
catborise 2022-08-24 15:16:08 +03:00
parent afffaa8589
commit 66a9edfae1
2 changed files with 8 additions and 1 deletions

View file

@ -37,6 +37,7 @@ RUN python3 -m venv venv && \
pip3 install -U pip && \
pip3 install wheel && \
pip3 install -r conf/requirements.txt && \
pip3 cache purge && \
chown -R www-data:www-data /srv/webvirtcloud
RUN . venv/bin/activate && \

View file

@ -132,7 +132,13 @@ USE_TZ = True
STATIC_URL = "/static/"
STATIC_ROOT = Path.joinpath(BASE_DIR, "static")
if not DEBUG:
STATIC_ROOT = Path.joinpath(BASE_DIR, "static")
else:
STATICFILES_DIRS = [
Path.joinpath(BASE_DIR, "static"),
]
# Default primary key field type