Commit 68fa3805 authored by Florent Chehab's avatar Florent Chehab

Fixed django static files handling

parent 9c78f586
......@@ -68,7 +68,7 @@ WEBPACK_LOADER = {
STATICFILES_DIRS = (
os.path.join(
BASE_DIR, "static/frontend_app/bundles/"
BASE_DIR, "backend/static/frontend_app/bundles/"
), # We do this so that django's collectstatic copies or our bundles to the STATIC_ROOT or syncs them to whatever storage we use.
)
# End of webpack loader related
......
......@@ -30,7 +30,7 @@ services:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
# Run the django developpement server on image startup.
command: /bin/sh -c "cd backend && ./manage.py runserver 0.0.0.0:8000"
command: /bin/sh -c "cd backend && ./manage.py collectstatic --noinput && ./manage.py runserver 0.0.0.0:8000"
depends_on:
# Required that the `database` service is up and running.
- database
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment