This use of dynamic rebinding is more confusing than clever.

This commit is contained in:
Brit Butler 2013-01-29 17:49:55 -05:00
parent 93ba4e45fc
commit 87b85b1d29

View file

@ -57,10 +57,10 @@ Additional args to render CONTENT can be passed via RENDER-ARGS."
(:documentation "Deploy the STAGING dir, updating the .prev and .curr symlinks.")
(:method (staging)
(with-current-directory coleslaw-conf:*basedir*
(let* ((coleslaw-conf:*basedir* (deploy *config*))
(new-build (app-path "generated/~a" (get-universal-time)))
(prev (app-path ".prev"))
(curr (app-path ".curr")))
(let* ((dest (deploy *config*))
(new-build (rel-path dest "generated/~a" (get-universal-time)))
(prev (rel-path dest ".prev"))
(curr (rel-path dest ".curr")))
(ensure-directories-exist new-build)
(run-program "mv ~a ~a" staging new-build)
(when (probe-file prev)