Add Makefile
This commit is contained in:
parent
2cc2d85875
commit
eb81dac29d
2 changed files with 11 additions and 10 deletions
11
Makefile
Normal file
11
Makefile
Normal 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
10
deploy
|
@ -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
|
|
Loading…
Reference in a new issue