Export *config* and use it in heroku plugin.
This commit is contained in:
parent
a703bcd984
commit
e893ac5447
2 changed files with 8 additions and 5 deletions
|
@ -6,15 +6,17 @@
|
|||
(:import-from #:hunchentoot :create-folder-dispatcher-and-handler
|
||||
:create-static-file-dispatcher-and-handler
|
||||
:*dispatch-table*)
|
||||
(:import-from #:coleslaw :deploy)
|
||||
(:import-from #:coleslaw :deploy
|
||||
:*config*)
|
||||
(: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*))
|
||||
(let ((blog (merge-pathnames ".curr/" (deploy *config*))))
|
||||
(push (create-folder-dispatcher-and-handler "/" blog)
|
||||
*dispatch-table*)
|
||||
(push (create-static-file-dispatcher-and-handler "/" (merge-pathnames "index.html" blog))
|
||||
*dispatch-table*)))
|
||||
|
||||
(defun enable ())
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#:compose)
|
||||
(:import-from :closure-template #:compile-template)
|
||||
(:export #:main
|
||||
#:*config*
|
||||
#:blog
|
||||
#:content
|
||||
#:post
|
||||
|
|
Loading…
Add table
Reference in a new issue