瀏覽代碼

Switch back to using rsync --delete -avz in deploy.

Brit Butler 10 年之前
父節點
當前提交
148c1a0c52
共有 2 個文件被更改,包括 5 次插入8 次删除
  1. 4 7
      docs/hacking.md
  2. 1 1
      src/coleslaw.lisp

+ 4 - 7
docs/hacking.md

@@ -223,15 +223,9 @@ PAGE, a content type for static page support, is available as a plugin.
223 223
 
224 224
 * Try to get tag-index urls out of the tags. Post templates use them.
225 225
 * Profile/memoize find-all calls in **INDEX** `render` method.
226
-* Test basic deploy, ensure links from refactor work.
227 226
 * Lots of docs updates for next release. At a minimum, we have broken
228 227
   custom themes. Config/plugin changes are definitely necessary too.
229
-
230
-### Deprecate :repo config option?
231
-
232
-Coleslaw must at this point *always* be called with `coleslaw:main`
233
-passing the repo directory as an argument. Given this, there is no
234
-need for users to specify a repo in their config.
228
+  Note that the `:repo` config option is ignored now/sourced from `main`.
235 229
 
236 230
 ### Real Error Handling
237 231
 
@@ -255,6 +249,9 @@ that are useful to the user. Example errors users have encountered:
255 249
    i.e. Specifying the `:repo` in .coleslawrc as the bare repo.
256 250
    The README should clarify this point and the need for posts to be
257 251
    ".post" files.
252
+4. Dear Lord it was miserable even debugging a transposed character error
253
+   in one of the templates. "${foo}" instead of "{$foo}". But fuck supporting
254
+   multiple templating backends I have enough problems.
258 255
 
259 256
 ### Scripting Conveniences/Basic Install
260 257
 

+ 1 - 1
src/coleslaw.lisp

@@ -41,7 +41,7 @@ in REPO-DIR. Optionally, OLDREV is the revision prior to the last push."
41 41
 (defgeneric deploy (staging)
42 42
   (:documentation "Deploy the STAGING build to the directory specified in the config.")
43 43
   (:method (staging)
44
-    (run-program "mv ~a ~a" staging (deploy-dir *config*))))
44
+    (run-program "rsync --delete -avz ~a ~a" staging (deploy-dir *config*))))
45 45
 
46 46
 (defun update-symlink (path target)
47 47
   "Update the symlink at PATH to point to TARGET."