summaryrefslogtreecommitdiff
path: root/DEPLOY.org
diff options
context:
space:
mode:
authorGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-01-21 08:41:26 -0600
committerGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-01-21 08:41:26 -0600
commit973dcf81dddee6e7d6c1bbf430ed3b4cb988ab27 (patch)
treeee4357fcb10600000f224e61ec6321f90e89f2c7 /DEPLOY.org
parent0d75ebb47601d5ffb1061fbab895c4747c06f7ac (diff)
Add: "logging" and symlink update to DEPLOY.org
Diffstat (limited to 'DEPLOY.org')
-rw-r--r--DEPLOY.org32
1 files 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))
+ <<deploy-image>>
+ <<deploy-assets>>)
+ (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