From a3feed45fd54a67f73a76e672411145823368e15 Mon Sep 17 00:00:00 2001 From: Jose Santos Date: Tue, 29 Jan 2013 20:24:56 +0000 Subject: [PATCH] Heroku plugin. --- plugins/heroku.lisp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plugins/heroku.lisp diff --git a/plugins/heroku.lisp b/plugins/heroku.lisp new file mode 100644 index 0000000..95f5b13 --- /dev/null +++ b/plugins/heroku.lisp @@ -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 ())