2015-03-13 15:07:49 +09:00
|
|
|
(in-package :cl-user)
|
|
|
|
|
2015-03-22 16:16:25 +09:00
|
|
|
(ql:quickload '(:lack :clack))
|
2015-03-13 15:07:49 +09:00
|
|
|
|
|
|
|
(defpackage lack-benchmark.lack
|
|
|
|
(:use :cl))
|
|
|
|
(in-package :lack-benchmark.lack)
|
|
|
|
|
2015-03-22 16:16:25 +09:00
|
|
|
(clack:lackup
|
2015-03-13 15:07:49 +09:00
|
|
|
(lack:builder
|
|
|
|
(:static :path (lambda (path)
|
|
|
|
(if (ppcre:scan "^(?:/images/|/css/|/js/|/robot\\.txt$|/favicon.ico$)" path)
|
|
|
|
path
|
|
|
|
nil))
|
|
|
|
:root (asdf:system-relative-pathname :lack #P"data/"))
|
|
|
|
:backtrace
|
|
|
|
:session
|
|
|
|
(lambda (env)
|
|
|
|
(declare (ignore env))
|
|
|
|
'(200 (:content-type "text/plain; charset=utf-8") ("Hello, World"))))
|
|
|
|
:server :hunchentoot
|
|
|
|
:debug nil
|
|
|
|
:use-thread nil)
|