team: Generate team page data using cron job.

This eliminates the contributors data as a possible source of
flakiness when installing Zulip from Git.

Fixes #14351.
This commit is contained in:
Vishnu KS
2020-04-07 22:57:07 +05:30
committed by Tim Abbott
parent 8415a1472a
commit 449f7e2d4b
10 changed files with 52 additions and 70 deletions

View File

@@ -904,6 +904,11 @@ LOGGING = {
}
} # type: Dict[str, Any]
if DEVELOPMENT:
CONTRIBUTOR_DATA_FILE_PATH = os.path.join(DEPLOY_ROOT, 'var/github-contributors.json')
else:
CONTRIBUTOR_DATA_FILE_PATH = '/var/lib/zulip/github-contributors.json'
LOGIN_REDIRECT_URL = '/'
# Client-side polling timeout for get_events, in milliseconds.