Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow all features to work in development #267

Draft
wants to merge 2 commits into
base: upgrade-django
Choose a base branch
from

Commits on Apr 2, 2024

  1. Allow search to work in development mode

    Previously, we were building our Xapian database in our working
    directory which meant that, when we mount our working directory over
    the one in the container, we're left with no search index.
    
    To allow the search index to persist even with a mounted working
    directory, this moves the search index outside the working directory
    (using the new SEARCHDB_PATH environment variable).
    
    It also makes the search Make targets more explicit, and moves all the
    search connection creation into `backend.util` so that we can change
    everything at once in future.
    SteveMarshall committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    a0cc614 View commit details
    Browse the repository at this point in the history
  2. Allow generated assets to show in development mode

    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.
    SteveMarshall committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    28b940c View commit details
    Browse the repository at this point in the history