72
72
sys.path.append(os.path.dirname(__file__))
74
75
from loggerhead.apps.transport import BranchesFromTransportRoot
75
77
from paste.httpexceptions import HTTPExceptionHandler
76
78
from paste.httpserver import serve
78
79
port = kw.get('port', DEFAULT_PORT)
79
80
# port might be an int already...
80
81
if isinstance(port, basestring) and ':' in port:
81
82
host, port = port.split(':')
85
argv = ['--host', host, '--port', str(port)]
86
92
super(cmd_serve, self).run(*args, **kw)