Mercurial > piecrust2
comparison piecrust/commands/builtin/serving.py @ 663:3ceeca7bb71c
themes: Add support for a `--theme` argument to `chef`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 01 Mar 2016 22:27:28 -0800 |
parents | fa3ee8a8ee2d |
children | 81d9c3a3a0b5 |
comparison
equal
deleted
inserted
replaced
662:cbd5cdec0695 | 663:3ceeca7bb71c |
---|---|
44 | 44 |
45 if ctx.args.wsgi == 'werkzeug': | 45 if ctx.args.wsgi == 'werkzeug': |
46 run_werkzeug_server( | 46 run_werkzeug_server( |
47 root_dir, host, port, | 47 root_dir, host, port, |
48 debug_piecrust=debug, | 48 debug_piecrust=debug, |
49 theme_site=ctx.args.theme, | |
49 sub_cache_dir=ctx.app.sub_cache_dir, | 50 sub_cache_dir=ctx.app.sub_cache_dir, |
50 use_debugger=debug, | 51 use_debugger=debug, |
51 use_reloader=ctx.args.use_reloader) | 52 use_reloader=ctx.args.use_reloader) |
52 | 53 |
53 elif ctx.args.wsgi == 'gunicorn': | 54 elif ctx.args.wsgi == 'gunicorn': |
60 if ctx.args.use_reloader: | 61 if ctx.args.use_reloader: |
61 options['reload'] = True | 62 options['reload'] = True |
62 run_gunicorn_server( | 63 run_gunicorn_server( |
63 root_dir, | 64 root_dir, |
64 debug_piecrust=debug, | 65 debug_piecrust=debug, |
66 theme_site=ctx.args.theme, | |
65 sub_cache_dir=ctx.app.sub_cache_dir, | 67 sub_cache_dir=ctx.app.sub_cache_dir, |
66 gunicorn_options=options) | 68 gunicorn_options=options) |
67 | 69 |