Introduction
Introduction Statistics Contact Development Disclaimer Help
tUse fastmail files as host - andersdamsgaard.com - my photography webpage
git clone git://src.adamsgaard.dk/andersdamsgaard.com
Log
Files
Refs
Submodules
README
LICENSE
---
commit b2bbd397c0425bba0a4093c8d1a7fcd95f037e2a
parent 4babb3cf6afab84f88942f5d7e68038bb8892e5e
Author: Anders Damsgaard <[email protected]>
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(-)
---
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://[email protected]:$(FASTMAILKEY)@ftp.fastmail.com; \
+ lcd ./public; \
+ cd /anders.adamsgaard.dk/files/$(DOMAIN); \
+ mirror --reverse --delete --use-cache --verbose --parallel=2"
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.