Introduction
Introduction Statistics Contact Development Disclaimer Help
tMakefile - andersdamsgaard.com - my photography webpage
git clone git://src.adamsgaard.dk/andersdamsgaard.com
Log
Files
Refs
Submodules
README
LICENSE
---
tMakefile (1493B)
---
1 DOMAIN=andersdamsgaard.com
2
3 .PHONY: local
4 local:
5 hugo server -D
6
7 .PHONY: generate-public
8 generate-public:
9 # generate public/ and remove unprocessed images
10 hugo --verbose
11 find public \
12 -iname '*.jpg' \
13 -not -iname '*resize*.jpg' \
14 -not -iname '*fill*.jpg' \
15 -not -iname '*fit*.jpg' \
16 -delete
17 # report size of build
18 du -h public/
19
20 deploy: generate-public
21 rsync -av public/ [email protected]:/var/www/domains/andersdamsga…
22
23 .PHONY: generate-letsencrypt-certificate
24 generate-letsencrypt-certificate:
25 sudo certbot certonly -a manual \
26 -d $(DOMAIN) -d www.$(DOMAIN) \
27 -d $(DOMAIN:.com=.dk) -d www.$(DOMAIN:.com=.dk)
28 sudo cp /etc/letsencrypt/live/andersdamsgaard.com/{fullchain,pri…
29 ~/.password-store/website/andersdamsgaard.com
30 sudo chown -R ad ~/.password-store/website/andersdamsgaard.com
31 @echo "Certificate is fullchain.pem, key (PEM) is privkey.pem"
32 @echo "Upload to the gitlab pages configuration"
33
34 #.PHONY: renew-letsencrypt-certificate
35 #renew-letsencrypt-certificate: generate-letsencrypt-certificate
36 .PHONY: renew-letsencrypt-certificate
37 renew-letsencrypt-certificate:
38 @echo "The following renew command may not work. If that is the …
39 "manually renew with 'make generate-letsencrypt-certific…
40 sudo certbot renew
41
42 .PHONY: check-letsencrypt-certificate
43 check-letsencrypt-certificate:
44 echo | openssl s_client -showcerts -servername $(DOMAIN).com \
45 -connect $(DOMAIN).com:443 2>/dev/null | \
46 openssl x509 -inform pem -noout -text
47
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.