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

Fixed django static files handling

parent 9c78f586
Pipeline #35302 passed with stages
in 3 minutes and 15 seconds
...@@ -68,7 +68,7 @@ WEBPACK_LOADER = { ...@@ -68,7 +68,7 @@ WEBPACK_LOADER = {
STATICFILES_DIRS = ( STATICFILES_DIRS = (
os.path.join( 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. ), # 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 # End of webpack loader related
......
...@@ -30,7 +30,7 @@ services: ...@@ -30,7 +30,7 @@ services:
- POSTGRES_USER=postgres - POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres - POSTGRES_PASSWORD=postgres
# Run the django developpement server on image startup. # 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: depends_on:
# Required that the `database` service is up and running. # Required that the `database` service is up and running.
- database - 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