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:
Tim Abbott
2020-04-24 13:22:59 -07:00
parent b46d1c8d07
commit c880886cc3

View File

@@ -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)