update-prod-static: Only run generate_landing_page_images if necessary.

The vast majority of deployments do not need landing page assets
generated every deploy, which takes more than 15s.  This also removes
them from built tarballs, which also do not need them.
This commit is contained in:
Alex Vandiver 2023-10-05 15:23:01 +00:00 committed by Tim Abbott
parent 369eea27ba
commit 89f824c769
1 changed files with 4 additions and 2 deletions

View File

@ -42,8 +42,10 @@ run(["./tools/setup/build_pygments_data"])
# Build time zone data # Build time zone data
run(["./tools/setup/build_timezone_values"]) run(["./tools/setup/build_timezone_values"])
# Generate landing page images of various sizes and formats. # Generate landing page images of various sizes and formats if we will
run(["tools/setup/generate_landing_page_images.py"]) # need them.
if settings.CORPORATE_ENABLED:
run(["./tools/setup/generate_landing_page_images.py"])
# Create webpack bundle # Create webpack bundle
run(["./tools/webpack", "--quiet"]) run(["./tools/webpack", "--quiet"])