1
0
Fork 0

Update deploy script

This commit is contained in:
Daniel Kempkens 2014-03-24 15:29:34 +01:00
parent 2e6f6537d2
commit db4f995046

10
deploy
View file

@ -1,2 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
jekyll build && rsync -avze ssh --delete _site/ kempkens:/var/www/blog
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