Bug#575102: mumble-django shouldn't depend on apache
Stefan Bühler
lighttpd at stbuehler.de
Tue Mar 23 14:31:11 UTC 2010
Package: mumble-django
Version: 2.0-1
There are other webservers which are capable of handling wsgi applications,
and there is no need to run the webserver on the same host,
so i think it should be a "recommend" dependency.
I run it myself with lighttpd2, and it works fine.
I use
exec /usr/bin/spawn-fcgi -s /var/run/lighttpd/mumble-django.sock -n -u mumble-server -U www-data -- /usr/share/mumble-django/mumble-
django.fastcgi
in my supervise run script and the following /usr/share/mumble-django/mumble-django.fastcgi:
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Set this to the same path you used in settings.py, or None for auto-detection.
MUMBLE_DJANGO_ROOT = None;
### DO NOT CHANGE ANYTHING BELOW THIS LINE ###
import os, sys
from os.path import join, dirname, abspath, exists
# Path auto-detection
if not MUMBLE_DJANGO_ROOT or not exists( MUMBLE_DJANGO_ROOT ):
MUMBLE_DJANGO_ROOT = dirname(abspath(__file__));
# environment variables
sys.path.append( MUMBLE_DJANGO_ROOT )
sys.path.append( join( MUMBLE_DJANGO_ROOT, 'pyweb' ) )
os.environ['DJANGO_SETTINGS_MODULE'] = 'pyweb.settings'
# If you get an error about Python not being able to write to the Python
# egg cache, the egg cache path might be set awkwardly. This should not
# happen under normal circumstances, but every now and then, it does.
# Uncomment this line to point the egg cache to /tmp.
#os.environ['PYTHON_EGG_CACHE'] = '/tmp/pyeggs'
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
More information about the Pkg-voip-maintainers
mailing list