Testing the UI build locally¶
During local development the UI is served in its original, unprocessed form. In production, a minified/built version of the UI (generated using grunt) is used instead.
To build the UI locally:
- Install local dependencies by running
yarn install --no-bin-linksfrom the project root.
yarn run buildto create the
Then to serve assets from this directory instead of
ui/, in the Vagrant environment
SERVE_MINIFIED_UI=True before starting gunicorn/runserver.