From 973dcf81dddee6e7d6c1bbf430ed3b4cb988ab27 Mon Sep 17 00:00:00 2001 From: Grant Shoshin Shangreaux Date: Sat, 21 Jan 2023 08:41:26 -0600 Subject: Add: "logging" and symlink update to DEPLOY.org --- DEPLOY.org | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/DEPLOY.org b/DEPLOY.org index 5558813..8d77b77 100644 --- a/DEPLOY.org +++ b/DEPLOY.org @@ -19,16 +19,36 @@ (format "bin/vampire-%s-%s" commit date)) #+end_src -* Copy Image To Host Destination +* Deploy Image and Assets to Server Host + +#+begin_src emacs-lisp :var name=vampire-image-name() dest="/scp:vampire@:" :noweb yes + (with-current-buffer (get-buffer-create "*vampire-deploy*") + (erase-buffer) + (insert (format "Deploying image %s. \n\n" name)) + <> + <>) + (switch-to-buffer-other-window "*vampire-deploy*") +#+end_src + +** Copy Image To Host Destination -#+begin_src emacs-lisp :var name=vampire-image-name() dest="/scp:vampire@:" :results none - (copy-file name (concat dest name))) +#+name: deploy-image +#+begin_src emacs-lisp :results none + (let ((destination (concat dest name))) + (insert (format "Copying image %s to %s" name destination)) (newline) + (copy-file name destination t) + (insert (format "Making symbolic link to point bin/vampire at %s" name destination)) (newline) + (make-symbolic-link destination (concat dest "bin/vampire") t)) #+end_src -* Copy CSS files +** Copy CSS files -#+begin_src emacs-lisp :var dest="/scp:vampire@:static/css/" :results none - (copy-directory "static/css/" dest nil nil t) +#+name: deploy-assets +#+begin_src emacs-lisp :results none +(let ((destination (concat dest "static/css/"))) + (insert (format "Copying static CSS assets %s..." destination)) (newline) + (copy-directory "static/css/" destination nil nil t) + (insert "Done.") (newline)) #+end_src ** copy directory notes -- cgit v1.2.3