From d4021fc6416a389a51078d915837c47a994317fd Mon Sep 17 00:00:00 2001 From: Taranjeet Singh Date: Sat, 16 Jul 2016 18:17:15 +0530 Subject: [PATCH] zproject/settings.py: Update path for JSON_PERSISTENT_QUEUE_FULENAME. This commit updates the path for JSON_PERSISTENT_QUEUE_FILENAME to var directory instead of var/log. --- zproject/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zproject/settings.py b/zproject/settings.py index e6a2a40937..ab634a7645 100644 --- a/zproject/settings.py +++ b/zproject/settings.py @@ -806,6 +806,9 @@ for (var, path) in ZULIP_PATHS: if DEVELOPMENT: # if DEVELOPMENT, store these files in the Zulip checkout path = os.path.join(DEVELOPMENT_LOG_DIRECTORY, os.path.basename(path)) + # only `JSON_PERSISTENT_QUEUE_FILENAME` will be stored in `var` + if var == 'JSON_PERSISTENT_QUEUE_FILENAME': + path = os.path.join(os.path.join(DEPLOY_ROOT, 'var'), os.path.basename(path)) vars()[var] = path ZULIP_WORKER_TEST_FILE = '/tmp/zulip-worker-test-file'