mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
The old "zulip_internal" name was from back when Zulip, Inc. had two distributions of Zulip, the enterprise distribution in puppet/zulip/ and the "internal" SAAS distribution in puppet/zulip_internal. I think the name is a bit confusing in the new fully open-source Zulip work, so we're replacing it with "zulip_ops". I don't think the new name is perfect, but it's better. In the following commits, we'll delete a bunch of pieces of Zulip, Inc.'s infrastructure that don't exist anymore and thus are no longer useful (e.g. the old Trac configuration), with the goal of cleaning the repository of as much unnecessary content as possible.
17 lines
585 B
Python
17 lines
585 B
Python
import os, sys
|
|
sys.path.append('/opt/graphite/webapp')
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings'
|
|
|
|
import django.core.handlers.wsgi
|
|
|
|
application = django.core.handlers.wsgi.WSGIHandler()
|
|
|
|
# READ THIS
|
|
# Initializing the search index can be very expensive, please include
|
|
# the WSGIScriptImport directive pointing to this script in your vhost
|
|
# config to ensure the index is preloaded before any requests are handed
|
|
# to the process.
|
|
from graphite.logger import log
|
|
log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid())
|
|
import graphite.metrics.search
|