The start command uses only one worker (#2271)
Fixes #2198 after https://github.com/andrewgodwin/channels/pull/298 is part of the next channels release
This commit is contained in:
parent
91ebfbac61
commit
ff658a59c1
@ -184,14 +184,16 @@ def start(args):
|
||||
start_browser('http://%s:%s' % (args.host, args.port))
|
||||
|
||||
# Start the webserver
|
||||
# Tell django not to reload. OpenSlides uses the reload method from tornado
|
||||
# Use insecure to serve static files, even when DEBUG is False.
|
||||
# Use flag --noreload to tell Django not to reload the server.
|
||||
# Use flag --insecure to serve static files even if DEBUG is False.
|
||||
# Use flag --nothreading to tell Django Channels to run in single thread mode.
|
||||
execute_from_command_line([
|
||||
'manage.py',
|
||||
'runserver',
|
||||
'{}:{}'.format(args.host, args.port),
|
||||
'--noreload',
|
||||
'--insecure'])
|
||||
'--insecure',
|
||||
'--nothreading'])
|
||||
|
||||
|
||||
def createsettings(args):
|
||||
|
Loading…
Reference in New Issue
Block a user