Make run-dev.py watch for template changes.

Have run-dev.py watch for template changes by calling
`./tools/compile-handlebars-templates forever`.  This doesn't
have much effect until the subsequent commit, but it does
alert users to broken templates.

(imported from commit 3fa5f403cabe0057f6f43180f1d09db669d98682)
This commit is contained in:
Steve Howell
2014-01-09 17:33:31 -05:00
committed by Waseem Daher
parent d256994528
commit 1ad82b1f70

View File

@@ -66,6 +66,9 @@ 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', shell=True)
# Set up a new process group, so that we can later kill run{server,tornado}
# and all of the processes they spawn.
os.setpgrp()