2013-01-29 16:11:55 -05:00
|
|
|
(eval-when (:compile-toplevel :load-toplevel)
|
2013-01-29 20:38:16 -05:00
|
|
|
(ql:quickload 'hunchentoot))
|
2013-01-29 16:11:55 -05:00
|
|
|
|
2013-01-29 20:24:56 +00:00
|
|
|
(defpackage :coleslaw-heroku
|
|
|
|
(:use :cl)
|
|
|
|
(:import-from #:hunchentoot :create-folder-dispatcher-and-handler
|
|
|
|
:create-static-file-dispatcher-and-handler
|
|
|
|
:*dispatch-table*)
|
2013-01-29 16:59:30 -05:00
|
|
|
(:import-from #:coleslaw :deploy)
|
2013-01-29 20:24:56 +00:00
|
|
|
(:export #:enable))
|
|
|
|
|
|
|
|
(in-package :coleslaw-heroku)
|
|
|
|
|
|
|
|
(defmethod deploy :after (staging)
|
2013-01-29 16:59:30 -05:00
|
|
|
(push (create-folder-dispatcher-and-handler "/" "/app/.curr/")
|
|
|
|
*dispatch-table*)
|
|
|
|
(push (create-static-file-dispatcher-and-handler "/" "/app/.curr/index.html")
|
|
|
|
*dispatch-table*))
|
2013-01-29 20:24:56 +00:00
|
|
|
|
|
|
|
(defun enable ())
|