mirror of https://github.com/zulip/zulip.git
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:
parent
7df44f2e87
commit
246bdbd829
|
@ -40,8 +40,9 @@ subprocess.check_call(['./tools/minify-js']
|
|||
subprocess.check_call(['./tools/setup/emoji/build_emoji'],
|
||||
stdout=fp, stderr=fp)
|
||||
|
||||
# Collect the files that we're going to serve.
|
||||
subprocess.check_call(['./manage.py', 'collectstatic', '--noinput', '-i', 'assets'],
|
||||
# Collect the files that we're going to serve; this creates prod-static/serve.
|
||||
subprocess.check_call(['./manage.py', 'collectstatic', '--no-default-ignore',
|
||||
'--noinput', '-i', 'assets'],
|
||||
stdout=fp, stderr=fp)
|
||||
|
||||
# Compile translation strings to generate `.mo` files.
|
||||
|
|
Loading…
Reference in New Issue