update-prod-static: Fix node_modules/.bin being unavailable in prod.

Apparently `manage.py collectstatic` by default strips files starting
with "." from what it collects.  This is a reasonably precaution,
though mostly irrelevant to us, since Zulip primarily runs that as
part of build-release tarball, which runs in a clean directory.

It also breaks our current approach for transferring node_modules to
prod machines via release tarballs; this change fixes that bug.
This commit is contained in:
Tim Abbott 2017-01-06 20:09:10 -08:00
parent 7df44f2e87
commit 246bdbd829
1 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,9 @@ subprocess.check_call(['./tools/minify-js']
subprocess.check_call(['./tools/setup/emoji/build_emoji'], subprocess.check_call(['./tools/setup/emoji/build_emoji'],
stdout=fp, stderr=fp) stdout=fp, stderr=fp)
# Collect the files that we're going to serve. # Collect the files that we're going to serve; this creates prod-static/serve.
subprocess.check_call(['./manage.py', 'collectstatic', '--noinput', '-i', 'assets'], subprocess.check_call(['./manage.py', 'collectstatic', '--no-default-ignore',
'--noinput', '-i', 'assets'],
stdout=fp, stderr=fp) stdout=fp, stderr=fp)
# Compile translation strings to generate `.mo` files. # Compile translation strings to generate `.mo` files.