mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
Change unbuffering strategy in runtornado.py.
runtornado unbuffers its output using sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0). This is not python 3 compatible since we can't specify buffering on a text stream in python 3. So use the '-u' option of python when calling runtornado.py to make output unbuffered.
This commit is contained in:
committed by
Tim Abbott
parent
3ee15feeb8
commit
da36947400
@@ -76,7 +76,7 @@ os.setpgrp()
|
||||
cmds = [['./tools/compile-handlebars-templates', 'forever'],
|
||||
['python', 'manage.py', 'rundjango'] +
|
||||
manage_args + ['localhost:%d' % (django_port,)],
|
||||
['python', 'manage.py', 'runtornado'] +
|
||||
['python', '-u', 'manage.py', 'runtornado'] +
|
||||
manage_args + ['localhost:%d' % (tornado_port,)],
|
||||
['./tools/run-dev-queue-processors'] + manage_args,
|
||||
['env', 'PGHOST=localhost', # Force password authentication using .pgpass
|
||||
|
||||
Reference in New Issue
Block a user