Add pipelined static media compilation to prepare-dev.py.

Review Request #11164 — Created Sept. 8, 2020 and submitted

Information

Review Board
release-4.0.x

Reviewers

When setting up a new tree, a common annoyance is that the first page
load has to compile all the referenced static media. This may appear to
be a problem with the server loading.

To improve the initial experience, we now compile all the static media
bundles up-front through Django Pipeline. This can take some time, but
no longer than it would take if trying to load a page and doing it then.
We also show the progress as the compilations proceed, giving a sense of
how much longer the process will take.

Ran prepare-dev.py on a new tree. Saw it compile all the static media
files, and verified their presence in the htdocs/static/ directory.

Summary ID
Add pipelined static media compilation to prepare-dev.py.
When setting up a new tree, a common annoyance is that the first page load has to compile all the referenced static media. This may appear to be a problem with the server loading. To improve the initial experience, we now compile all the static media bundles up-front through Django Pipeline. This can take some time, but no longer than it would take if trying to load a page and doing it then. We also show the progress as the compilations proceed, giving a sense of how much longer the process will take.
20b4dcd0267647cb6b0289fd4fbeded7a8128903
Description From Last Updated

Should be "Run Pipeline on all the files"

daviddavid
david
  1. 
      
  2. contrib/internal/prepare-dev.py (Diff revision 1)
     
     
    Show all issues

    Should be "Run Pipeline on all the files"

  3. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.0.x (a847161)