does hoplon have a twitter account?
^^ drift widget for hoplon
just call (hoplon-drift.hoplon/snippet your-drift-id)
@jumblerg hey, i put a PR up with a few additions to the s3 bucket task https://github.com/tailrecursion/boot-bucket/pull/2
main thing is that you can set metadata so you can gzip your files before sending them to s3
which gets around the 10mb limit on cloudfront, is slightly faster, and means you use less storage on s3
awesome! will pull in a bit.
it's compatible with https://github.com/martinklepsch/boot-gzip
so you can do this
(gzip
:files {"index.html" "index.html"
"index.html.js" "index.html.js"
"main.css" "main.css"})
(spew
:bucket (environ.core/env :aws-bucket)
:access-key (environ.core/env :aws-access-key)
:secret-key (environ.core/env :aws-secret-key)
:metadata {"index.html" {:content-encoding "gzip"}
"index.html.js" {:content-encoding "gzip"}
"main.css" {:content-encoding "gzip"}})
@jumblerg if/when you pull, please remember to push to clojars ๐
my index.html.js
just hit 10.05 mb so blows up cloudfront ๐
cool - thatโll benefit me too. willdo.
many thanks for the contribution.
np
oh also i made it push the files in parallel
just pushed another snapshot
sweet
testing it out...
@jumblerg mostly works, looks like metadata doesn't work for files in directories
i'll see if i can fix
k!
bah, browser cache!
false alarm