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.
This commit is contained in:
Taranjeet Singh 2016-07-16 18:17:15 +05:30 committed by Tim Abbott
parent ba3f9de9a9
commit d4021fc641
1 changed files with 3 additions and 0 deletions

View File

@ -806,6 +806,9 @@ for (var, path) in ZULIP_PATHS:
if DEVELOPMENT: if DEVELOPMENT:
# if DEVELOPMENT, store these files in the Zulip checkout # if DEVELOPMENT, store these files in the Zulip checkout
path = os.path.join(DEVELOPMENT_LOG_DIRECTORY, os.path.basename(path)) 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 vars()[var] = path
ZULIP_WORKER_TEST_FILE = '/tmp/zulip-worker-test-file' ZULIP_WORKER_TEST_FILE = '/tmp/zulip-worker-test-file'