Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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