1
0
Fork 0

Add Makefile

This commit is contained in:
Daniel Kempkens 2014-08-13 21:14:35 +02:00
parent 2cc2d85875
commit eb81dac29d
2 changed files with 11 additions and 10 deletions

11
Makefile Normal file
View file

@ -0,0 +1,11 @@
all: compile upload
compile:
@echo "=== Generating static files"
@jekyll build
upload:
@echo "=== Syncing files"
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ kempkens:/var/www/blog
@echo "=== Changing permissions"
@ssh kempkens chown -R www-data:www-data /var/www/blog

10
deploy
View file

@ -1,10 +0,0 @@
#!/usr/bin/env bash
echo "=== Generating static files"
jekyll build
echo "=== Syncing files"
rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ kempkens:/var/www/blog
echo "=== Changing permissions"
ssh kempkens chown -R www-data:www-data /var/www/blog