diff piecrust/serving/util.py @ 862:fddaf43424e2

refactor: Get the page assets to work again in the server.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 08 Jun 2017 23:09:34 -0700
parents 08e02c2a2a1a
children 01458d3b646b
line wrap: on
line diff
--- a/piecrust/serving/util.py	Thu Jun 08 08:52:45 2017 -0700
+++ b/piecrust/serving/util.py	Thu Jun 08 23:09:34 2017 -0700
@@ -17,6 +17,8 @@
     app = appfactory.create()
     app.config.set('site/root', root_url)
     app.config.set('server/is_serving', True)
+    # We'll serve page assets directly from where they are.
+    app.config.set('site/asset_url_format', root_url + '_asset/%path%')
     return app