From 612e219becbd08f7126d73f8144158db3ba01cfa Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 18 Aug 2013 16:03:45 +0200 Subject: Use *base-directory* to find location of assets Static assets are located in the `static/' sub-directory of the project. Locating them with just `static/' works fine if execution is started in the project's directory, but when starting somewhere else this causes trouble. --- scrumli.lisp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scrumli.lisp b/scrumli.lisp index 18bacb0..c718b5f 100644 --- a/scrumli.lisp +++ b/scrumli.lisp @@ -261,7 +261,9 @@ (defun get-app () (builder - ( :path "/static/" :root "static/") + ( + :path "/static/" + :root (merge-pathnames #P"static/" scrumli-config:*base-directory*)) ( :state (make-instance 'clack.session.state.cookie:)) ( -- cgit v1.2.3-54-g00ecf