Skip to content

Instantly share code, notes, and snippets.

@nateswart
Created January 7, 2014 18:40
Show Gist options
  • Save nateswart/8304301 to your computer and use it in GitHub Desktop.
Save nateswart/8304301 to your computer and use it in GitHub Desktop.
Refresh a Jekyll blog and rsync it
tell application "Terminal"
activate
do script "cd YOUR_JEKYLL_DIR && jekyll build && rsync -avzr --delete YOUR_JEKYLL_DIR/_site/ -e ssh YOUR_USER@YOUR_SERVER:/PATH_TO_WEB_ROOT/ && exit"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment