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.
This commit is contained in:
Tom Willemse 2013-08-18 16:03:45 +02:00
parent 751936fbde
commit 612e219bec

View file

@ -261,7 +261,9 @@
(defun get-app ()
(builder
(<clack-middleware-static> :path "/static/" :root "static/")
(<clack-middleware-static>
:path "/static/"
:root (merge-pathnames #P"static/" scrumli-config:*base-directory*))
(<clack-middleware-session>
:state (make-instance 'clack.session.state.cookie:<clack-session-state-cookie>))
(<clack-middleware-postmodern>