Fix Missing Static Assets
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 23 Oct 2018 17:52:31 +0000 (10:52 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 23 Oct 2018 18:03:33 +0000 (11:03 -0700)
collectstatic copies the static assets to STATIC_ROOT (which is set to
'/static'), instead of the static directory under pharos_dashboard.

Updating the static volume, which is served from NGINX to include these
files should fix the missing assets.

Change-Id: I19288e9825c1513684e4ee5f8a9542b1a0ceeeb1
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
docker-compose.yml

index 2f96343..eddc54c 100644 (file)
@@ -33,8 +33,8 @@ services:
             - postgres
         env_file: config.env
         volumes:
-            - pharos-static:/pharos_dashboard/static/
-            - pharos-media:/pharos_dashboard/media/
+            - pharos-static:/static
+            - pharos-media:/media
         expose:
             - "8000"