2014-12-27 21:29:18 +00:00
|
|
|
all: compile upload superfeedr
|
2014-08-13 19:14:35 +00:00
|
|
|
|
|
|
|
compile:
|
|
|
|
@echo "=== Generating static files"
|
2014-12-31 18:23:24 +00:00
|
|
|
@bundle exec jekyll build --lsi
|
2014-12-24 22:28:09 +00:00
|
|
|
@echo "Done."
|
2014-08-13 19:14:35 +00:00
|
|
|
|
|
|
|
upload:
|
|
|
|
@echo "=== Syncing files"
|
2014-12-07 18:46:48 +00:00
|
|
|
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ webserver.kempkens.io:/var/www/blog
|
2014-12-24 22:28:09 +00:00
|
|
|
@echo "Done."
|
2014-08-13 19:14:35 +00:00
|
|
|
@echo "=== Changing permissions"
|
2014-12-07 18:46:48 +00:00
|
|
|
@ssh webserver.kempkens.io chown -R www:www /var/www/blog
|
2014-12-24 22:28:09 +00:00
|
|
|
@echo "Done."
|
2014-12-24 21:52:49 +00:00
|
|
|
|
|
|
|
superfeedr:
|
2014-12-24 22:28:09 +00:00
|
|
|
@echo "=== Notifying Superfeedr"
|
|
|
|
@curl -X POST https://kempkens.superfeedr.com -d "hub.mode=publish" -d "hub.url=https://blog.kempkens.io/feed.xml"
|
2015-01-01 19:51:56 +00:00
|
|
|
@curl -X POST https://kempkens.superfeedr.com -d "hub.mode=publish" -d "hub.url=https://blog.kempkens.io/feed-with-links.xml"
|
2014-12-24 22:28:09 +00:00
|
|
|
@echo "Done."
|