mirror of
https://github.com/django/daphne.git
synced 2024-11-22 07:56:34 +03:00
expose file descriptor on command line
This commit is contained in:
parent
0e1bce1714
commit
89686f9034
|
@ -41,6 +41,13 @@ class CommandLineInterface(object):
|
||||||
help='Bind to a UNIX socket rather than a TCP host/port',
|
help='Bind to a UNIX socket rather than a TCP host/port',
|
||||||
default=None,
|
default=None,
|
||||||
)
|
)
|
||||||
|
self.parser.add_argument(
|
||||||
|
'--fd',
|
||||||
|
type=int,
|
||||||
|
dest='file_descriptor',
|
||||||
|
help='Bind to a file descriptor rather than a TCP host/port or named unix socket',
|
||||||
|
default=None,
|
||||||
|
)
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
'-v',
|
'-v',
|
||||||
'--verbosity',
|
'--verbosity',
|
||||||
|
@ -133,6 +140,7 @@ class CommandLineInterface(object):
|
||||||
host=args.host,
|
host=args.host,
|
||||||
port=args.port,
|
port=args.port,
|
||||||
unix_socket=args.unix_socket,
|
unix_socket=args.unix_socket,
|
||||||
|
file_descriptor=args.file_descriptor,
|
||||||
http_timeout=args.http_timeout,
|
http_timeout=args.http_timeout,
|
||||||
ping_interval=args.ping_interval,
|
ping_interval=args.ping_interval,
|
||||||
action_logger=AccessLogGenerator(access_log_stream) if access_log_stream else None,
|
action_logger=AccessLogGenerator(access_log_stream) if access_log_stream else None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user