mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
committed by
Tim Abbott
parent
a766c092fc
commit
246fbf6d29
@@ -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"])
|
||||
|
||||
|
Reference in New Issue
Block a user