diff options
author | Tom Willemse | 2013-08-18 16:03:45 +0200 |
---|---|---|
committer | Tom Willemse | 2013-08-18 16:06:16 +0200 |
commit | 612e219becbd08f7126d73f8144158db3ba01cfa (patch) | |
tree | e13685ad21c6c36e8d46697863cd29cc80849908 | |
parent | 751936fbde0143ac2409ba50216526b89f558ce9 (diff) | |
download | scrumli-612e219becbd08f7126d73f8144158db3ba01cfa.tar.gz scrumli-612e219becbd08f7126d73f8144158db3ba01cfa.zip |
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.
-rw-r--r-- | scrumli.lisp | 4 |
1 files changed, 3 insertions, 1 deletions
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 - (<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> |