Heroku plugin.

This commit is contained in:
Jose Santos 2013-01-29 20:24:56 +00:00
parent ce12c56644
commit a3feed45fd

17
plugins/heroku.lisp Normal file
View file

@ -0,0 +1,17 @@
(defpackage :coleslaw-heroku
(:use :cl)
(:import-from #:hunchentoot :create-folder-dispatcher-and-handler
:create-static-file-dispatcher-and-handler
:*dispatch-table*)
(:import-from #:coleslaw :deploy)
(:export #:enable))
(in-package :coleslaw-heroku)
(defmethod deploy :after (staging)
(push (create-folder-dispatcher-and-handler "/" "/app/.curr/")
*dispatch-table*)
(push (create-static-file-dispatcher-and-handler "/" "/app/.curr/index.html")
*dispatch-table*))
(defun enable ())