Skip to content

Commit

Permalink
Add the static dir in the Dockerfile #9
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <[email protected]>
  • Loading branch information
tdruez committed Jan 20, 2021
1 parent b68ee5a commit 9e9c87c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM python:3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir /opt/scancodeio/
RUN mkdir -p /var/scancodeio/static/
WORKDIR /opt/scancodeio/
COPY etc/requirements/base.txt /opt/scancodeio/
RUN pip install -r base.txt
Expand Down
6 changes: 3 additions & 3 deletions scancodeio/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@

STATIC_URL = "/static/"

STATIC_ROOT = "/var/www/scancodeio/static/"
STATIC_ROOT = "/var/scancodeio/static/"

STATICFILES_DIRS = [
str(PROJECT_DIR.joinpath("static")),
Expand All @@ -184,8 +184,8 @@

# Celery

CELERY_BROKER_URL = "redis://"
CELERY_RESULT_BACKEND = "redis://"
CELERY_BROKER_URL = env.str("CELERY_BROKER_URL", default="redis://")
CELERY_RESULT_BACKEND = env.str("CELERY_RESULT_BACKEND", default="redis://")
CELERY_IGNORE_RESULT = False
CELERY_TASK_DEFAULT_QUEUE = "default"
# When True, tasks will be executed immediately in the local thread instead of being
Expand Down

0 comments on commit 9e9c87c

Please sign in to comment.