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:
parent
751936fbde
commit
612e219bec
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue