1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-09-13 08:42:23 +10:00

server: Pass through process count from command line

This commit is contained in:
Stuart Longland 2018-04-18 17:02:09 +10:00
parent 03e74c2b0b
commit e335062319
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -280,7 +280,8 @@ def main(*args, **kwargs):
static_path=args.static_path,
site_name=args.site_name,
site_uri=args.site_uri,
template_path=args.template_path)
template_path=args.template_path,
num_proc=args.process_count)
http_server = HTTPServer(application)
http_server.listen(port=args.listen_port, address=args.listen_address)
IOLoop.current().start()