changeset 1068:137c9b41edd2

serve: Fix crash with `serve --admin`.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 13 Feb 2018 23:21:00 -0800
parents c3b15ad24a93
children dff873f11541
files piecrust/serving/wrappers.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/serving/wrappers.py	Tue Feb 13 21:53:11 2018 -0800
+++ b/piecrust/serving/wrappers.py	Tue Feb 13 23:21:00 2018 -0800
@@ -181,6 +181,8 @@
     if serve_admin:
         from piecrust.admin.web import create_foodtruck_app
 
+        admin_root_url = admin_root_url or '/pc-admin'
+
         es = {
             'FOODTRUCK_CMDLINE_MODE': is_cmdline_mode,
             'FOODTRUCK_ROOT_DIR': appfactory.root_dir,