File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
:serial t
3
3
:description " Example cl-heroku application"
4
4
:depends-on (# :hunchentoot
5
- # :cl-who)
5
+ # :cl-who
6
+ # :postmodern)
6
7
:components ((:file " package" )
7
8
(:module :src
8
9
:serial t
Original file line number Diff line number Diff line change 1
1
(in-package :example )
2
2
3
+ ; ; Database
4
+ (unless (postmodern :connected-p postmodern :*database* )
5
+ (postmodern :connect-toplevel " production_test" " postgres" " postgres" " localhost" ))
6
+
7
+ ; ; Handlers
8
+ (hunchentoot :define-easy-handler (hello-db :uri " /hello-db" ) (name)
9
+ (setf (hunchentoot :content-type*) " text/plain" )
10
+ (format nil " From db: ~A " (postmodern :query (:select ' * :from ' accounts))))
11
+
3
12
(push (hunchentoot :create-folder-dispatcher-and-handler " /static/" " /app/public/" )
4
13
hunchentoot :*dispatch-table* )
5
14
You can’t perform that action at this time.
0 commit comments