Pārlūkot izejas kodu

Heroku is a read-only FS so we can't use /app as a deploy target.

This reverts commit e893ac54472749aae17d962bfbf740ec71c990d9.
Brit Butler 12 gadi atpakaļ
vecāks
revīzija
93ba4e45fc
2 mainītis faili ar 5 papildinājumiem un 8 dzēšanām
  1. 5 7
      plugins/heroku.lisp
  2. 0 1
      src/packages.lisp

+ 5 - 7
plugins/heroku.lisp

@@ -6,17 +6,15 @@
6 6
   (:import-from #:hunchentoot :create-folder-dispatcher-and-handler
7 7
                               :create-static-file-dispatcher-and-handler
8 8
                               :*dispatch-table*)
9
-  (:import-from #:coleslaw :deploy
10
-                           :*config*)
9
+  (:import-from #:coleslaw :deploy)
11 10
   (:export #:enable))
12 11
 
13 12
 (in-package :coleslaw-heroku)
14 13
 
15 14
 (defmethod deploy :after (staging)
16
-  (let ((blog (merge-pathnames ".curr/" (deploy *config*))))
17
-    (push (create-folder-dispatcher-and-handler "/" blog)
18
-          *dispatch-table*)
19
-    (push (create-static-file-dispatcher-and-handler "/" (merge-pathnames "index.html" blog))
20
-          *dispatch-table*)))
15
+  (push (create-folder-dispatcher-and-handler "/" "/app/.curr/")
16
+        *dispatch-table*)
17
+  (push (create-static-file-dispatcher-and-handler "/" "/app/.curr/index.html")
18
+        *dispatch-table*))
21 19
 
22 20
 (defun enable ())

+ 0 - 1
src/packages.lisp

@@ -7,7 +7,6 @@
7 7
                             #:compose)
8 8
   (:import-from :closure-template #:compile-template)
9 9
   (:export #:main
10
-           #:*config*
11 10
            #:blog
12 11
            #:content
13 12
            #:post