Created
July 18, 2015 07:30
-
-
Save janzikan/ccceb716d79d3b25f688 to your computer and use it in GitHub Desktop.
Rake: task for deployment of jekyll site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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