Skip to content

Instantly share code, notes, and snippets.

@janzikan
Created July 18, 2015 07:30
Show Gist options
  • Save janzikan/ccceb716d79d3b25f688 to your computer and use it in GitHub Desktop.
Save janzikan/ccceb716d79d3b25f688 to your computer and use it in GitHub Desktop.
Rake: task for deployment of jekyll site
task :deploy do
command = "jekyll build && \
git push origin master && \
rsync -avz --delete _site/ [SERVER]:/var/www/[PROJECT_DIR]"
sh command
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment