diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 41 |
1 files changed, 4 insertions, 37 deletions
| @@ -1,40 +1,7 @@ | |||
| 1 | MAKEFLAGS := --jobs=2 | 1 | dev: |
| 2 | hugo server | ||
| 2 | 3 | ||
| 3 | provision: | 4 | deploy: |
| 4 | cd ~/Junk \ | 5 | hugo |
| 5 | git clone https://git.sr.ht/~sircmpwn/openring \ | ||
| 6 | cd openring \ | ||
| 7 | go build \ | ||
| 8 | go install | ||
| 9 | |||
| 10 | dither: | ||
| 11 | bash tools/dither-images.sh | ||
| 12 | |||
| 13 | openring: | ||
| 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 | |||
| 24 | dev: alternator server | ||
| 25 | |||
| 26 | alternator: openring | ||
| 27 | mkdir -p public | ||
| 28 | alternator --watch | ||
| 29 | |||
| 30 | build: openring | ||
| 31 | mkdir -p public | ||
| 32 | alternator --build | ||
| 33 | rm template/openring-build.html | ||
| 34 | |||
| 35 | server: | ||
| 36 | python3 -m http.server 8000 --directory public | ||
| 37 | |||
| 38 | deploy: 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 |
