# HG changeset patch # User Ludovic Chabant # Date 1394422014 25200 # Node ID 31ac8bd02ddd4b4d12e651a526cea63b00f5c4b2 # Parent 4306c6b56b30a23329cc9fd4532824b552c0f9ed Still tweaking the arguments to the damn `wk runserver` command. diff -r 4306c6b56b30 -r 31ac8bd02ddd wikked/commands/web.py --- 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,