We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 204b936 + 92b0cd6 commit 0d82ae4Copy full SHA for 0d82ae4
dockerfile
@@ -27,6 +27,8 @@ COPY todoqueue_frontend /app/todoqueue_frontend
27
WORKDIR /app/todoqueue_frontend
28
RUN npm install
29
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/
32
33
WORKDIR /app/todoqueue_backend
34
todoqueue_backend/todoqueue_backend/settings.py
@@ -61,7 +61,7 @@
61
# Static files configurations
62
STATIC_URL = "/static/"
63
STATIC_ROOT = os.path.join(BASE_DIR, "static")
64
-STATICFILES_DIRS = [os.path.join(BASE_DIR, "../todoqueue_frontend/build/static/")]
+STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
65
66
67
# email settings
0 commit comments