Page 1 of 1

Lisp webservice

Posted: Thu Jul 02, 2009 8:56 am
by swarmpox
Hi all,

I was wondering about the easiest way to develop/deploy a webservice written in Lisp (something like a "Hello World" webservice). I am using SBCL on an Ubuntu machine.

Thanks for any help...

Re: Lisp webservice

Posted: Tue Jul 07, 2009 3:18 pm
by Unne
I recommend these videos for tips on developing the app (the "Reddit clone" videos are about Common Lisp with Hunchentoot, ignore the Clojure ones if you don't care about those).

To deploy, it's fairly easy to set up Hunchentoot on a non-privileged port and then set Apache to forward traffic to Hunchentoot via mod_proxy. There are instructions in the Hunchentoot docs.

To run your Lisp persistently on the server, a lot of people just start a REPL in GNU Screen and detach from the Screen instance. Getting it all to survive a system reboot probably requires writing your own init scripts though.

Re: Lisp webservice

Posted: Tue Jul 07, 2009 4:21 pm
by gugamilare
You may try Weblocks, which is a neat framework which uses CLOS and continuations. You may also try Hunchentoot, which is a server (the one used by weblocks), if you want something lighter and simpler.