Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 981 Bytes
task :default do
sh "rm -fr _site"
sh "bundle exec jekyll build"
sh "rm -fr _site/awscli-bundle.zip"
sh "rm -fr _site/awscli-bundle"
sh "rm -fr _site/ssl-challenge" # Remove that folder before we sync with the other site
sh "aws s3 sync ./_site s3://itinerantfoodie.com --region ap-northeast-2 --exclude '.DS_Store' --exclude 'node_modules/*' --exclude '.git/*' --exclude '.gitignore' --exclude 'Gemfile*' --exclude 'Rakefile' --exclude 'awscli-bundle*' --exclude 'ssl-challenge/*' --exclude '*.md' --acl public-read"
end
task :serve do
sh "rm -fr _site"
sh "bundle exec jekyll serve"
end
task :servedrafts do
sh "rm -fr _site"
sh "bundle exec jekyll serve --drafts"
end
# Just a simple rake task which helps sync whats in the SSL challenge directory (not runnable from CI)
task :sslchallenge do
sh "aws --profile=perceptionz s3 sync ./ssl-challenge s3://static.itinerantfoodie.com/.well-known/acme-challenge --region ap-northeast-2 --acl public-read"
end