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:
Eklavya Sharma
2016-07-13 18:04:31 +05:30
committed by Tim Abbott
parent 3ee15feeb8
commit da36947400
3 changed files with 2 additions and 5 deletions

View File

@@ -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