#!/usr/bin/env python

import os
import cherrypy
from cherrypy import wsgiserver
from coverart_redirect.server import make_application
from coverart_redirect.config import Config

config_path = os.path.dirname(os.path.abspath(__file__)) + '/coverart_redirect.conf'
static_path = os.path.dirname(os.path.abspath(__file__)) + '/static'

config = Config(config_path, static_path)
application = make_application(config)

server = wsgiserver.CherryPyWSGIServer((config.listen.addr, int(config.listen.port)), 
                                       application)
cherrypy.config.update({ 
    'log.screen': True,
    "server.thread_pool" : 10
})
cherrypy.log("server starting")
try:
    server.start()
except KeyboardInterrupt:
    server.stop()
Ejemplo n.º 2
0
# Copyright (C) 2011 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.

# Simple WSGI module intended to be used by uWSGI, e.g.:
# uwsgi -w acoustid.wsgi --pythonpath ~/acoustid/ --env COVERART_REDIRECT_CONFIG=~/acoustid/acoustid.conf --http :9090
# uwsgi -w acoustid.wsgi --pythonpath ~/acoustid/ --env COVERART_REDITECT_CONFIG=~/acoustid/acoustid.conf -M -L --socket 127.0.0.1:1717

import os
from coverart_redirect.server import make_application

application = make_application(os.environ['COVERART_REDIRECT_CONFIG'])

Ejemplo n.º 3
0
# Copyright (C) 2011 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.

# Simple WSGI module intended to be used by uWSGI, e.g.:
# uwsgi -w acoustid.wsgi --pythonpath ~/acoustid/ --env COVERART_REDIRECT_CONFIG=~/acoustid/acoustid.conf --http :9090
# uwsgi -w acoustid.wsgi --pythonpath ~/acoustid/ --env COVERART_REDITECT_CONFIG=~/acoustid/acoustid.conf -M -L --socket 127.0.0.1:1717

import os
from coverart_redirect.server import make_application

application = make_application(os.environ['COVERART_REDIRECT_CONFIG'])
#!/usr/bin/env python

import os
import cherrypy
from cherrypy import wsgiserver
from coverart_redirect.server import make_application
from coverart_redirect.config import Config

config_path = os.path.dirname(
    os.path.abspath(__file__)) + '/coverart_redirect.conf'
static_path = os.path.dirname(os.path.abspath(__file__)) + '/static'

config = Config(config_path, static_path)
application = make_application(config)

server = wsgiserver.CherryPyWSGIServer(
    (config.listen.addr, int(config.listen.port)), application)
cherrypy.config.update({'log.screen': True, "server.thread_pool": 10})
cherrypy.log("server starting")
try:
    server.start()
except KeyboardInterrupt:
    server.stop()