Update docs related to :static-root

This commit is contained in:
David Botton 2021-01-25 13:02:08 -05:00
parent d657d46241
commit 0060f1be07
3 changed files with 7 additions and 2 deletions

2
FAQ
View file

@ -7,7 +7,7 @@ A) If running a tutorial or demo:
Or you can use (setf clog::*overide-static-root* #P"~/common-lisp/clog/static-files/")
to overide the static path in (clog:initialize)
If running your own app. Make sure the :static-file key is set correctly on (clog:initialize)
If running your own app. Make sure the :static-root key is set correctly on (clog:initialize)
Q) How do I turn my CLOG app in to a native Mac, Windows or Linux app?

View file

@ -58,6 +58,8 @@ have Quicklisp configured):
1. cd to the CLOG dir (the dir should be one used by Quicklisp ex. ~/common-lisp/)
2. Start emacs/slime or your common lisp "repl" in _that_ directory.
(This is just for tutorial, so relative paths work. In your app you just set
the :site-root directory any place you want on initialize.)
3. In the REPL, run:
CL-USER> (ql:quickload :clog)

View file

@ -18,7 +18,10 @@
(defvar *clog-running* nil "If clog running.")
(defvar *overide-static-root* nil "Overide the static-root settings.")
(defvar *overide-static-root* nil
"Overide the static-root settings. This is not normally a good idea, but if
trying to run the tutorials or demos and unable to have your local directy the
same as the clog directy this overides the relative paths used in them.")
;;;;;;;;;;;;;;;;
;; initialize ;;