mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
The new puppet.conf file has to be moved into place manually. (imported from commit 253d9a95386dae8c803a998ce2dc7e8be40c880a)
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
|