Last active
December 14, 2015 15:19
-
-
Save cmoore/5107034 to your computer and use it in GitHub Desktop.
A quickie serve-the-current-directory script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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