Monday, January 9, 2012

How I got hunchentoot to serve static file folder on archlinux with quicklisp and SBCL with help from stassats and Elias Mårtenson

1 Use pacman to load sbcl rlwrap and then download quicklisp. --------------------->

2 [g@myhost ~]$ cat hunch (ql:quickload "hunchentoot") (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4242)) (push (hunchentoot:create-folder-dispatcher-and-handler "/www/" #p"/home/g/mighty/www/") hunchentoot:*dispatch-table*) ------------------------------------->

3 [g@myhost ~]$ rlwrap sbcl --load hunch This is SBCL 1.0.54, an implementation of ANSI Common Lisp. More information about SBCL is available at . SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. To load "hunchentoot": Load 1 ASDF system: hunchentoot ; Loading "hunchentoot"

localhost:4242/www/hi.html

No comments: