mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
7230d65e22
commit
d8baf9b30e
@ -44,7 +44,7 @@ class Command(BaseCommand):
|
|||||||
addr = bind.split("unix:")[1]
|
addr = bind.split("unix:")[1]
|
||||||
else:
|
else:
|
||||||
if ':' in bind:
|
if ':' in bind:
|
||||||
host, port = host.split(':', 1)
|
host, port = bind.split(':', 1)
|
||||||
if not port.isdigit():
|
if not port.isdigit():
|
||||||
raise CommandError("%r is not a valid port number." % port)
|
raise CommandError("%r is not a valid port number." % port)
|
||||||
port = int(port)
|
port = int(port)
|
||||||
@ -64,7 +64,7 @@ class Command(BaseCommand):
|
|||||||
print "\nDjango version %s, using settings %r" % (django.get_version(), settings.SETTINGS_MODULE)
|
print "\nDjango version %s, using settings %r" % (django.get_version(), settings.SETTINGS_MODULE)
|
||||||
|
|
||||||
if isinstance(addr, basestring):
|
if isinstance(addr, basestring):
|
||||||
print "Development server is running at unix:/" % addr
|
print "Development server is running at unix:/%s" % addr
|
||||||
else:
|
else:
|
||||||
print "Development server is running at http://%s:%s/" % addr
|
print "Development server is running at http://%s:%s/" % addr
|
||||||
print "Quit the server with %s." % quit_command
|
print "Quit the server with %s." % quit_command
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user