Merge pull request #12 from jsmpereira/master
Add initial version of Heroku plugin.
This commit is contained in:
commit
26749ee1d3
1 changed files with 17 additions and 0 deletions
17
plugins/heroku.lisp
Normal file
17
plugins/heroku.lisp
Normal 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 ())
|
Loading…
Add table
Reference in a new issue