Fork me on GitHub
#hoplon
<
2018-04-03
>
thedavidmeister04:04:46

does hoplon have a twitter account?

thedavidmeister04:04:30

^^ drift widget for hoplon

thedavidmeister04:04:54

just call (hoplon-drift.hoplon/snippet your-drift-id)

thedavidmeister13:04:16

@jumblerg hey, i put a PR up with a few additions to the s3 bucket task https://github.com/tailrecursion/boot-bucket/pull/2

thedavidmeister13:04:47

main thing is that you can set metadata so you can gzip your files before sending them to s3

thedavidmeister13:04:17

which gets around the 10mb limit on cloudfront, is slightly faster, and means you use less storage on s3

jumblerg13:04:56

awesome! will pull in a bit.

thedavidmeister13:04:20

so you can do this

thedavidmeister13:04:26

(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"}})

thedavidmeister13:04:37

@jumblerg if/when you pull, please remember to push to clojars đŸ˜‰

thedavidmeister13:04:13

my index.html.js just hit 10.05 mb so blows up cloudfront đŸ˜›

jumblerg13:04:19

cool - that’ll benefit me too. willdo.

jumblerg13:04:53

many thanks for the contribution.

thedavidmeister13:04:49

oh also i made it push the files in parallel

jumblerg13:04:10

just pushed another snapshot

thedavidmeister14:04:14

testing it out...

thedavidmeister14:04:21

@jumblerg mostly works, looks like metadata doesn't work for files in directories

thedavidmeister14:04:29

i'll see if i can fix

thedavidmeister14:04:29

bah, browser cache!