aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 4 insertions, 37 deletions
diff --git a/Makefile b/Makefile
index 2533f5b..ac5f6ac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,40 +1,7 @@
1MAKEFLAGS := --jobs=2 1dev:
2 hugo server
2 3
3provision: 4deploy:
4 cd ~/Junk \ 5 hugo
5 git clone https://git.sr.ht/~sircmpwn/openring \
6 cd openring \
7 go build \
8 go install
9
10dither:
11 bash tools/dither-images.sh
12
13openring:
14 mkdir -p public
15 openring -l 165 -n 5 -p 1 \
16 -s https://drewdevault.com/feed.xml \
17 -s https://danluu.com/atom.xml \
18 -s https://serokell.io/blog.rss.xml \
19 -s https://cronokirby.com/posts/index.xml \
20 -s https://www.jeffgeerling.com/blog.xml \
21 < template/openring.tmpl \
22 > template/openring-build.html
23
24dev: alternator server
25
26alternator: openring
27 mkdir -p public
28 alternator --watch
29
30build: openring
31 mkdir -p public
32 alternator --build
33 rm template/openring-build.html
34
35server:
36 python3 -m http.server 8000 --directory public
37
38deploy: build
39 rsync -a --delete public/ root@165.22.87.180:/var/www/html/mitjafelicijan.com/ 6 rsync -a --delete public/ root@165.22.87.180:/var/www/html/mitjafelicijan.com/
40 ssh root@165.22.87.180 chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf 7 ssh root@165.22.87.180 chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf