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
aws_s3_sync = "aws --region us-west-2 s3 sync public s3://blog.riywo.com --delete --storage-class=REDUCED_REDUNDANCY" | |
task :default => :server | |
task :server do | |
sh 'rm -fr public' | |
exec 'hugo server -b http://blog.riywo.com --appendPort=false -w --disableLiveReload' | |
end | |
task :test do | |
sh %Q{#{aws_s3_sync} --dryrun --size-only} | |
end | |
task :deploy do | |
sh aws_s3_sync | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment