Skip to content

Commit

Permalink
Allow generated assets to show in development mode
Browse files Browse the repository at this point in the history
In development, we mount our working directory over the one in the
container, meaning that generated assets (like the stats graphs) aren't
accessible. Rather than rebuild them into our working directory, this
adds the version collected during the container build as a last-resort
place to serve them from.

We're only setting this in development mode to avoid having
`collectstatic` (which we run in `live` mode) try to collect assets
from its own target directory.
  • Loading branch information
SteveMarshall committed Apr 2, 2024
1 parent f1a802d commit a1bcec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/configs/development/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
from local_settings import *
except ImportError:
pass

STATICFILES_DIRS += [
"/home/spacelog/assets/website"
]

0 comments on commit a1bcec2

Please sign in to comment.