Use flup instead of flipflop to create the FastCGI application

This commit is contained in:
Guillaume Ayoub 2017-04-15 18:05:42 +02:00
parent 8293ca5c1c
commit 7ad1f985a6

View File

@ -21,14 +21,16 @@ Radicale FastCGI Example.
Launch a Radicale FastCGI server according to configuration. Launch a Radicale FastCGI server according to configuration.
This script relies on flup but can be easily adapted to use another
WSGI-to-FastCGI mapper.
""" """
import os import os
from flipflop import WSGIServer from flup.server.fcgi import WSGIServer
from radicale import Application, config, log from radicale import Application, config, log
configuration = config.load([os.environ.get("RADICALE_CONFIG")]) configuration = config.load([os.environ.get("RADICALE_CONFIG")])
logger = log.start() logger = log.start()
WSGIServer(Application(configuration, logger)).run() WSGIServer(Application(configuration, logger)).run()