diff options
| author | Alon Levy <alon@pobox.com> | 2015-02-15 18:57:58 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-02-15 18:57:58 +0200 |
| commit | 692668765ec70a4e07f84ae7ad7798f4712ecd9a (patch) | |
| tree | 8d34277303f142dcc4d17ff4ba1de8689284497f | |
| parent | 1b4aff6486789897ab486df271b12698a115e497 (diff) | |
server: fix default root_path for ./run-local.sh plus add assertion early, before flask template loader bails
| -rw-r--r-- | res/etc/rhizi-server.conf.example | 2 | ||||
| -rw-r--r-- | src/server/rz_server.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/res/etc/rhizi-server.conf.example b/res/etc/rhizi-server.conf.example index 4b592db2..d1281c58 100644 --- a/res/etc/rhizi-server.conf.example +++ b/res/etc/rhizi-server.conf.example @@ -6,7 +6,7 @@ # General # development_mode = True -root_path = ./deploy-local +root_path = . static_url_path = /static # ----------------------------------------------------------------------------- diff --git a/src/server/rz_server.py b/src/server/rz_server.py index a4968c94..20f0b30f 100644 --- a/src/server/rz_server.py +++ b/src/server/rz_server.py @@ -253,6 +253,7 @@ def init_webapp(cfg, kernel, db_ctl=None): - call init_rest_interface() """ root_path = cfg.root_path + assert os.path.exists(root_path), "root path doesn't exist: %s" % root_path webapp = FlaskExt(__name__, static_folder='static', |
