2017-08-07 09:06:46 +00:00
|
|
|
#!/usr/bin/env python
|
2014-03-02 17:31:32 +00:00
|
|
|
#
|
2018-03-04 20:49:56 +00:00
|
|
|
# This file is part of Supysonic.
|
2014-03-02 17:31:32 +00:00
|
|
|
# Supysonic is a Python implementation of the Subsonic server API.
|
|
|
|
#
|
2018-03-04 20:49:56 +00:00
|
|
|
# Copyright (C) 2013 Alban 'spl0k' Féron
|
2014-03-02 17:31:32 +00:00
|
|
|
#
|
2018-03-04 20:49:56 +00:00
|
|
|
# Distributed under terms of the GNU AGPLv3 license.
|
2014-03-02 17:31:32 +00:00
|
|
|
|
2014-03-04 18:42:05 +00:00
|
|
|
from flup.server.fcgi import WSGIServer
|
2014-04-27 15:13:50 +00:00
|
|
|
from supysonic.web import create_application
|
2014-03-04 18:42:05 +00:00
|
|
|
|
|
|
|
app = create_application()
|
|
|
|
if app:
|
2020-11-22 15:28:26 +00:00
|
|
|
WSGIServer(app, bindAddress = "/path/to/fcgi.sock").run()
|