diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3134e6a --- /dev/null +++ b/Makefile @@ -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 diff --git a/deploy b/deploy deleted file mode 100755 index 91c60ee..0000000 --- a/deploy +++ /dev/null @@ -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