fukamachi / caveman

Lightweight web application framework for Common Lisp.
http://8arrow.org/caveman/
776 stars 62 forks source link

Problem when using Postmodern #39

Closed ghost closed 9 years ago

ghost commented 9 years ago

I do add the builder for in "app.lisp", but REPL keeps telling me this when I start the server:

Undefined function MYSITE.APP::<CLACK-MIDDLEWARE-POSTMODERN> called with arguments (:DATABASE
                                                                                             "blog"
                                                                                             :USER
                                                                                             "web_admin"
                                                                                             :PASSWORD
                                                                                             "password"
                                                                                             :HOST
                                                                                             "localhost") 

Anybody has the same problem?

fukamachi commented 9 years ago

It may be too late, but you need to import a symbol clack.middleware.postmodern:<clack-middleware-postmodern> to the package myapp.app by adding a new :import-from directive to defpackage.

ghost commented 9 years ago

That works, thanks for your help :-D