-
-
Save jjcall/1143414 to your computer and use it in GitHub Desktop.
Wordperss deployment with rake and rsync
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
ssh_user = "[email protected]" # for rsync deployment | |
remote_root = "~/path/to/remote/" # for rsync deployment | |
namespace :styles do | |
desc "Clear styles" | |
task :clear do | |
puts "*** Clearing styles ***" | |
system "rm -Rfv css/*" | |
end | |
desc "Generate styles" | |
task :generate => [:clear] do | |
puts "*** Generating styles ***" | |
system "compass" | |
end | |
end | |
desc "Clears the styles, generates new ones and then deploys the theme" | |
task :deploy => 'styles:generate' do | |
puts "*** Deploying the site ***" | |
system("rsync -avz --delete . #{ssh_user}:#{remote_root}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment