Ver código fonte

Heroku plugin.

Jose Santos 12 anos atrás
pai
commit
a3feed45fd
1 arquivos alterados com 17 adições e 0 exclusões
  1. 17 0
      plugins/heroku.lisp

+ 17 - 0
plugins/heroku.lisp

@@ -0,0 +1,17 @@
1
+(defpackage :coleslaw-heroku
2
+  (:use :cl)
3
+  (:import-from #:hunchentoot :create-folder-dispatcher-and-handler
4
+                              :create-static-file-dispatcher-and-handler
5
+                              :*dispatch-table*)
6
+  (:import-from #:coleslaw :deploy)
7
+  (:export #:enable))
8
+
9
+(in-package :coleslaw-heroku)
10
+
11
+(defmethod deploy :after (staging)
12
+  (push (create-folder-dispatcher-and-handler "/" "/app/.curr/")
13
+        *dispatch-table*)
14
+  (push (create-static-file-dispatcher-and-handler "/" "/app/.curr/index.html")
15
+        *dispatch-table*))
16
+
17
+(defun enable ())