mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +00:00
Debug server: Use port if provided
This commit is contained in:
parent
e1e5961c41
commit
eeb23a641e
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user