1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 19:52:16 +00:00

Debug server: Use port if provided

This commit is contained in:
shuddertrix 2016-02-28 01:16:28 -05:00
parent e1e5961c41
commit eeb23a641e

View File

@ -25,5 +25,5 @@ app = create_application()
if __name__ == '__main__': if __name__ == '__main__':
if app: if app:
import sys import sys
app.run(host = sys.argv[1] if len(sys.argv) > 1 else None, debug = True) 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)