Mercurial > wikked
changeset 222:31ac8bd02ddd
Still tweaking the arguments to the damn `wk runserver` command.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 09 Mar 2014 20:26:54 -0700 |
parents | 4306c6b56b30 |
children | a978ecf99408 |
files | wikked/commands/web.py |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/commands/web.py Mon Mar 03 22:03:06 2014 -0800 +++ b/wikked/commands/web.py Sun Mar 09 20:26:54 2014 -0700 @@ -21,7 +21,10 @@ help="The port to use", default=5000) parser.add_argument('-d', '--dev', - help="Use development assets", + help="Use development mode. " + "This makes Wikked use development assets (separate and " + "uncompressed scripts and stylesheets), along with using " + "code reloading and debugging.", action='store_true') def run(self, ctx): @@ -35,13 +38,14 @@ # Setup the app. if ctx.args.dev: app.config['DEV_ASSETS'] = True + app.config['WIKI_AUTO_RELOAD'] = True app.wiki_params = ctx.params if bool(app.config.get('UPDATE_WIKI_ON_START')): ctx.wiki.update() # Run! - debug_mode = ctx.args.debug or app.config.get('DEBUG', False) + debug_mode = ctx.args.dev or app.config.get('DEBUG', False) app.run( host=ctx.args.host, port=ctx.args.port,