Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created April 13, 2015 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/e992d82b052062df668d to your computer and use it in GitHub Desktop.
Save mrchrisadams/e992d82b052062df668d to your computer and use it in GitHub Desktop.
A properly jank-o script for uploading a static site to greenqloud. Used to get my company site online
cd [default]
access_key = TOP_SECRET_STOP_LOOKING
bucket_location = IS
default_mime_type = binary/octet-stream
delete_removed = False
dry_run = False
encoding = UTF-8
encrypt = False
follow_symlinks = False
force = False
get_continue = False
gpg_command = /opt/boxen/homebrew/bin/gpg
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
guess_mime_type = True
host_base = s.greenqloud.com
host_bucket = %(bucket)s.s.greenqloud.com
human_readable_sizes = False
list_md5 = False
preserve_attrs = True
progress_meter = True
proxy_host =
proxy_port = 0
recursive = False
recv_chunk = 4096
secret_key = I_SAID_STOP_LOOKING_NOSEY_PARKER
send_chunk = 4096
skip_existing = False
urlencoding_mode = normal
use_https = False
verbosity = WARNING
#!/usr/bin/env bash
# This command jumps into the compiled build directory, then syncs this content
# the chosen provider ( in this case, GreenQloud).
# It relies on s3cmd being installed, and passing in a custom config file
# run cactus build to create our compiled HTML rsite
cactus build
# then CD into the directory to run the sync
cd .build
export S3GQ_CONFIG="$HOME/.s3cfg.gq.cfg"
s3cmd sync --acl-public --guess-mime-type . s3://productscience.co.uk --follow-symlinks -c $S3GQ_CONFIG --verbose --check-md5
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment