1
0
Fork 0
blog.kempkens.io/Makefile
2014-12-24 22:52:49 +01:00

14 lines
469 B
Makefile

all: compile upload superfeedr
compile:
@echo "=== Generating static files"
@bundle exec jekyll build
upload:
@echo "=== Syncing files"
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ webserver.kempkens.io:/var/www/blog
@echo "=== Changing permissions"
@ssh webserver.kempkens.io chown -R www:www /var/www/blog
superfeedr:
curl -X POST https://kempkens-blog.superfeedr.com -d "hub.mode=publish" -d "hub.url=https://blog.kempkens.io/feed.xml"