Skip to content

Commit

Permalink
actually actually commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mtravers committed Mar 5, 2012
1 parent 284b66d commit 0257a14
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions example.asd
@@ -0,0 +1,14 @@
(in-package :asdf)

(defsystem :example
:name "example"
:description "Example cl-heroku application"
:depends-on (:aserve :wuwei)
:components
((:static-file "example.asd")
(:module :src
:serial t
:components
((:file "hello-world"))
)))

11 changes: 11 additions & 0 deletions heroku-setup.lisp
@@ -0,0 +1,11 @@
(in-package :cl-user)

(print ">>> Building system....")

(load (make-pathname :directory *build-dir* :defaults "example.asd"))

(ql:quickload :example)

;;; Redefine / extend heroku-toplevel here if necessary.

(print ">>> Done building system")
12 changes: 12 additions & 0 deletions src/hello-world.lisp
@@ -0,0 +1,12 @@
(in-package :net.aserve)

(publish :path "/"
:function #'(lambda (req ent)
(with-http-response (req ent)
(with-http-body (req ent)
(html
(:h1 "Hello World")
(:princ "Congratulations, you are running Lisp on Heroku"))))))



0 comments on commit 0257a14

Please sign in to comment.