Skip to content

Commit 0d82ae4

Browse files
authored
Merge pull request #70 from wildjames/dev
actually fix docker issue
2 parents 204b936 + 92b0cd6 commit 0d82ae4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ COPY todoqueue_frontend /app/todoqueue_frontend
2727
WORKDIR /app/todoqueue_frontend
2828
RUN npm install
2929
RUN npm run build
30+
# Make sure the output of npm run build is correctly placed where Django expects static files
31+
RUN cp -r build/* /app/todoqueue_backend/static/
3032

3133
WORKDIR /app/todoqueue_backend
3234

todoqueue_backend/todoqueue_backend/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
# Static files configurations
6262
STATIC_URL = "/static/"
6363
STATIC_ROOT = os.path.join(BASE_DIR, "static")
64-
STATICFILES_DIRS = [os.path.join(BASE_DIR, "../todoqueue_frontend/build/static/")]
64+
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
6565

6666

6767
# email settings

0 commit comments

Comments
 (0)