feat(lisp): Correctly set location for static assets in Nix builds
In order to let Hunchentoot serve the static assets from the correct location, the *static-file-location* parameter is set before image dumping based on the $out-envvar which is present during the build process. This can easily be set manually in the config file if required by a user.
This commit is contained in:
parent
8703b6102c
commit
bd3b2782b9
2 changed files with 12 additions and 9 deletions
|
|
@ -28,10 +28,4 @@
|
|||
;; cl-prevalence is not in the current Quicklisp -> Nix snapshot
|
||||
(ql:quickload "cl-prevalence")
|
||||
|
||||
;; the $out path should be set in the application to let Hunchentoot serve the
|
||||
;; correct static files.
|
||||
|
||||
(if (sb-posix:getenv "out")
|
||||
(defvar *gemma-nix-out-dir* (sb-posix:getenv "out")))
|
||||
|
||||
(asdf:operate 'asdf:program-op :gemma)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue