ajmalafif
2/9/2014 - 4:47 PM

publish.sh

#!/bin/sh

# Be sure to set the index and 404 docs to "index" and "404" respectively in your bucket settings

# replace with your compile command
harp compile ./ ./out

# removes the html extension
for f in `ls out/*.html out/**/*.html`; do mv $f "${f%%.*}"; done

# requires patched s3cmd from github
# https://github.com/s3tools/s3cmd/issues/243
s3cmd sync --default-mime-type="text/html; charset=utf-8" --guess-mime-type --delete-removed out/ s3://eric.pdxhub.org/