From dd8eda4edc7582b861fe5c39089bae4e5c8fb52c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 20 Aug 2015 15:32:15 -0700 Subject: [PATCH] run-dev: Run compile-handlebars-templates inside the pgrp (imported from commit bb13f8804b7e9e930ecd2542ea8772c76370d32e) --- tools/run-dev.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/run-dev.py b/tools/run-dev.py index 034433df65..1a171ceecd 100755 --- a/tools/run-dev.py +++ b/tools/run-dev.py @@ -65,16 +65,14 @@ os.chdir(os.path.join(os.path.dirname(__file__), '..')) # Clean up stale .pyc files etc. subprocess.check_call('./tools/clean-repo') -# Watch for handlebars changes. -subprocess.Popen(['./tools/compile-handlebars-templates', 'forever']) - # Set up a new process group, so that we can later kill run{server,tornado} # and all of the processes they spawn. os.setpgrp() # Pass --nostatic because we configure static serving ourselves in # zulip/urls.py. -cmds = [['python', 'manage.py', 'runserver', '--nostatic'] + +cmds = [['./tools/compile-handlebars-templates', 'forever'], + ['python', 'manage.py', 'runserver', '--nostatic'] + manage_args + ['localhost:%d' % (django_port,)], ['python', 'manage.py', 'runtornado'] + manage_args + ['localhost:%d' % (tornado_port,)],