2017-08-07 09:06:46 +00:00
|
|
|
#!/usr/bin/env python
|
2012-10-13 09:29:48 +00:00
|
|
|
# coding: utf-8
|
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-05-06 17:37:40 +00:00
|
|
|
from supysonic.web import create_application
|
2014-05-04 14:04:50 +00:00
|
|
|
app = create_application()
|
2012-10-13 09:29:48 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2014-03-03 20:43:06 +00:00
|
|
|
if app:
|
2014-05-04 14:04:50 +00:00
|
|
|
import sys
|
2016-02-28 06:16:28 +00:00
|
|
|
app.run(host = sys.argv[1] if len(sys.argv) > 1 else None, port = int(sys.argv[2]) if len(sys.argv) > 2 else 5000, debug = True)
|
2012-10-13 09:29:48 +00:00
|
|
|
|