mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
update-prod-static: Reduce verbosity of logging.
Previously, update-prod-static would produce thousands of lines of basically useless output in `var/log/update-prod-static.log`.
This commit is contained in:
@@ -52,11 +52,12 @@ run(['./tools/setup/generate_zulip_bots_static_files.py'], stdout=fp, stderr=fp)
|
||||
run(['./tools/setup/build_pygments_data'], stdout=fp, stderr=fp)
|
||||
|
||||
# Create webpack bundle
|
||||
run(['./tools/webpack'], stdout=fp, stderr=fp)
|
||||
run(['./tools/webpack', '--quiet'], stdout=fp, stderr=fp)
|
||||
|
||||
# Collect the files that we're going to serve; this creates prod-static/serve.
|
||||
run([
|
||||
'./manage.py', 'collectstatic', '--no-default-ignore',
|
||||
'-v0',
|
||||
'--noinput',
|
||||
'-i', 'assets',
|
||||
'-i', 'emoji-styles',
|
||||
@@ -67,7 +68,7 @@ run([
|
||||
], stdout=fp, stderr=fp)
|
||||
|
||||
# Compile translation strings to generate `.mo` files.
|
||||
run(['./manage.py', 'compilemessages'], stdout=fp, stderr=fp)
|
||||
run(['./manage.py', 'compilemessages', '-v0'], stdout=fp, stderr=fp)
|
||||
|
||||
# Needed if PRODUCTION
|
||||
os.makedirs('prod-static', exist_ok=True)
|
||||
|
Reference in New Issue
Block a user