Created
September 23, 2010 02:35
-
-
Save jmlacroix/592988 to your computer and use it in GitHub Desktop.
My jmlacroix.com-jekyll Rakefile to embed in a post
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 :default => :server | |
desc 'Start server with --auto' | |
task :server do | |
jekyll('--server --auto') | |
end | |
desc 'Build site with Jekyll' | |
task :build do | |
jekyll('--no-future') | |
end | |
desc 'Build and deploy' | |
task :publish => :build do | |
bucket = 'MYBUCKET' | |
puts "Publishing site to bucket #{bucket}" | |
sh 'ruby aws_cf_sync.rb _site/ ' + bucket | |
end | |
def jekyll(opts = '') | |
sh 'rm -rf _site/*' | |
sh 'jekyll ' + opts | |
end |
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
[default] | |
access_key = S3_ACCESS_KEY | |
secret_key = S3_SECRET_KEY | |
acl_public = False | |
bucket_location = US | |
cloudfront_host = cloudfront.amazonaws.com | |
cloudfront_resource = /2008-06-30/distribution | |
default_mime_type = binary/octet-stream | |
delete_removed = False | |
dry_run = False | |
encoding = UTF-8 | |
encrypt = False | |
force = False | |
get_continue = False | |
gpg_command = None | |
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)sgpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)sgpg_passphrase = | |
guess_mime_type = True | |
host_base = s3.amazonaws.com | |
host_bucket = %(bucket)s.s3.amazonaws.com | |
human_readable_sizes = False | |
list_md5 = False | |
preserve_attrs = True | |
progress_meter = True | |
proxy_host = | |
proxy_port = 0 | |
recursive = False | |
recv_chunk = 4096 | |
send_chunk = 4096 | |
simpledb_host = sdb.amazonaws.com | |
skip_existing = False | |
urlencoding_mode = normal | |
use_https = False | |
verbosity = WARNING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment