diff piecrust/commands/builtin/baking.py @ 653:466bbddd121e

admin: Run the asset pipeline before showing the admin panel. * This makes the compiled assets available for the site preview. * Remove unneeded `--foodtruck` option to `bake`.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 18 Feb 2016 20:54:37 -0800
parents c7ac7dc2fe73
children 81d9c3a3a0b5
line wrap: on
line diff
--- a/piecrust/commands/builtin/baking.py	Tue Feb 16 22:32:58 2016 -0800
+++ b/piecrust/commands/builtin/baking.py	Thu Feb 18 20:54:37 2016 -0800
@@ -58,24 +58,8 @@
                 '--show-timers',
                 help="Show detailed timing information.",
                 action='store_true')
-        parser.add_argument(
-                '--foodtruck',
-                help="Run the asset pipeline for FoodTruck.",
-                action='store_true')
 
     def run(self, ctx):
-        if ctx.args.foodtruck:
-            if ctx.args.html_only:
-                raise Exception("`--foodtruck` and `--html-only` can't be "
-                                "both specified.")
-            if ctx.args.output:
-                raise Exception("`--foodtruck` and `--output` can't be "
-                                "both specified.")
-
-            ctx.args.assets_only = True
-            ctx.args.output = os.path.join(ctx.app.root_dir, CACHE_DIR,
-                                           'foodtruck', 'server')
-
         out_dir = (ctx.args.output or
                    os.path.join(ctx.app.root_dir, '_counter'))