Skip to content

Instantly share code, notes, and snippets.

@cmoore
Last active December 14, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmoore/5107034 to your computer and use it in GitHub Desktop.
Save cmoore/5107034 to your computer and use it in GitHub Desktop.
A quickie serve-the-current-directory script.
(ql:quickload 'cl-fad)
(ql:quickload 'hunchentoot)
(defun serve-this (args)
(declare (ignore args))
(hunchentoot:start (make-instance 'hunchentoot:easy-acceptor
:document-root (probe-file #P".")
:port 4040))
(read-char *standard-input*)
(sb-ext:exit))
;./buildapp --load ~/quicklisp/setup.lisp --load servicle.lisp --entry serve-this --output fx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment