help: Add production config for the new help center.

Fixes #35131.

Most of the nginx config is copied from
https://docs.astro.build/en/recipes/docker/#nginx.

We ideally should be generating two builds for Zulip cloud and serve a
different one depending on whether the subdomain is same as the root
domain or not. We can look into this as an immediate followup while this
commit helps things get ready for a test deploy on CZO.
This commit is contained in:
Shubham Padia
2025-08-13 21:55:04 +00:00
committed by Tim Abbott
parent a766c092fc
commit 246fbf6d29
3 changed files with 32 additions and 1 deletions

View File

@@ -46,10 +46,17 @@ run(["./tools/setup/build_timezone_values"])
# need them.
if settings.CORPORATE_ENABLED:
run(["./tools/setup/generate_landing_page_images.py"])
# We ideally should be generating two builds for Zulip cloud
# and serve a different one depending on whether the subdomain
# is same as the root domain or not.
run(["./tools/build-help-center", "--no-relative-links"])
else:
run(["./tools/build-help-center"])
# Create webpack bundle
run(["./tools/webpack", "--quiet"])
# Collect the files that we're going to serve; this creates prod-static/serve.
run(["./manage.py", "collectstatic", "-v0", "--noinput"])