Browse Source

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

Brit Butler 10 years ago
parent
commit
148c1a0c52
2 changed files with 5 additions and 8 deletions
  1. 4 7
      docs/hacking.md
  2. 1 1
      src/coleslaw.lisp

+ 4 - 7
docs/hacking.md

223
 
223
 
224
 * Try to get tag-index urls out of the tags. Post templates use them.
224
 * Try to get tag-index urls out of the tags. Post templates use them.
225
 * Profile/memoize find-all calls in **INDEX** `render` method.
225
 * Profile/memoize find-all calls in **INDEX** `render` method.
226
-* Test basic deploy, ensure links from refactor work.
227
 * Lots of docs updates for next release. At a minimum, we have broken
226
 * Lots of docs updates for next release. At a minimum, we have broken
228
   custom themes. Config/plugin changes are definitely necessary too.
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
 ### Real Error Handling
230
 ### Real Error Handling
237
 
231
 
255
    i.e. Specifying the `:repo` in .coleslawrc as the bare repo.
249
    i.e. Specifying the `:repo` in .coleslawrc as the bare repo.
256
    The README should clarify this point and the need for posts to be
250
    The README should clarify this point and the need for posts to be
257
    ".post" files.
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
 ### Scripting Conveniences/Basic Install
256
 ### Scripting Conveniences/Basic Install
260
 
257
 

+ 1 - 1
src/coleslaw.lisp

41
 (defgeneric deploy (staging)
41
 (defgeneric deploy (staging)
42
   (:documentation "Deploy the STAGING build to the directory specified in the config.")
42
   (:documentation "Deploy the STAGING build to the directory specified in the config.")
43
   (:method (staging)
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
 (defun update-symlink (path target)
46
 (defun update-symlink (path target)
47
   "Update the symlink at PATH to point to TARGET."
47
   "Update the symlink at PATH to point to TARGET."