Use flup instead of flipflop to create the FastCGI application
This commit is contained in:
parent
8293ca5c1c
commit
7ad1f985a6
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user