tUse fastmail files as host - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit b2bbd397c0425bba0a4093c8d1a7fcd95f037e2a
(DIR) parent 4babb3cf6afab84f88942f5d7e68038bb8892e5e
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 2 Nov 2018 12:48:34 +0100
Use fastmail files as host
Diffstat:
M Makefile | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -1,19 +1,19 @@
-# hugo new posts/beach-view-0.md
-
-DOMAIN=www.andersdamsgaard.com
+DOMAIN=andersdamsgaard.com
.PHONY: local
local:
hugo server -D
-# https://serverless.com/blog/how-to-create-blog-using-components-hugo/
-.PHONY: deploy
deploy:
- $(RM) -r public/
+ # generate public/
hugo
- echo "Removing unprocessed images"
+ # remove unprocessed images
find public/ \
-name '*.jpg' -not -name '*resize*.jpg' -not -name '*box*.jpg' \
-delete
- gsutil -m rsync -d -r public gs://$(DOMAIN)
- gsutil iam ch allUsers:objectViewer gs://$(DOMAIN)
+ # upload to fastmail
+ lftp -c "set ftp:list-options -a; \
+ open ftp://anders@adamsgaard.dk:$(FASTMAILKEY)@ftp.fastmail.com; \
+ lcd ./public; \
+ cd /anders.adamsgaard.dk/files/$(DOMAIN); \
+ mirror --reverse --delete --use-cache --verbose --parallel=2"