# HG changeset patch # User Ludovic Chabant # Date 1436940796 25200 # Node ID 5b57a189fd98409b0dbfdf3ad3c86fced87b93e0 # Parent c582746cb7ebc1257a3c8f690fc3b5e3dbe24997 bug: Correctly setup the environment/app for bake workers. diff -r c582746cb7eb -r 5b57a189fd98 piecrust/baking/worker.py --- a/piecrust/baking/worker.py Tue Jul 14 23:02:56 2015 -0700 +++ b/piecrust/baking/worker.py Tue Jul 14 23:13:16 2015 -0700 @@ -41,6 +41,8 @@ # Create the app local to this worker. app = PieCrust(self.ctx.root_dir, debug=self.ctx.debug) app._useSubCacheDir(self.ctx.sub_cache_dir) + app.config.set('baker/is_baking', True) + app.env.base_asset_url_format = '%uri%' app.env.fs_cache_only_for_main_page = True app.env.registerTimer("BakeWorker_%d_Total" % self.wid) app.env.registerTimer("BakeWorkerInit")