From e6ca5d265d9ee80d837b71e50d0761a8342044b2 Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Tue, 12 Nov 2013 14:37:23 -0500 Subject: [PATCH] Include handlebars templates in build-local-server-tarball update-prod-static needs DEBUG=False. This also replaces our local_settings.py before generating anything included in the tarball. (imported from commit 890cd9d1a44acfd2c20e1662e0c68132c633d1b3) --- tools/build-local-server-tarball | 10 ++++++++++ zproject/settings.py | 11 +++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/tools/build-local-server-tarball b/tools/build-local-server-tarball index 12b03c0d41..be4d151466 100755 --- a/tools/build-local-server-tarball +++ b/tools/build-local-server-tarball @@ -20,6 +20,16 @@ git archive -o $TARBALL --prefix=zulip-server/ HEAD git checkout-index -f -a --prefix $TMP_CHECKOUT cd $TMP_CHECKOUT +# Use default settings so there is no chance of leaking secrets +cp zproject/local_settings_template.py zproject/local_settings.py + +# Some settings need values for it to work +cat >> zproject/local_settings.py < 1 and sys.argv[1] == 'collectstatic') - -if DEBUG and not COLLECTSTATIC: +if DEBUG: STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage' STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.AppDirectoriesFinder',