Clojurians
#hoplon
<
2015-12-10
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

onetom00:12:58

@tbrooke: we r not running our site from s3 yet. The other day alan showed how to prep a webjar for heroku usage but cant find it in my notes. U r right about that skeleton app repo, it doesn't have a deployment step. Its dependencies are also a bit old

onetom00:12:17

What u can do in the meantime is "aws s3 sync target/ <s3://your.site/>"

onetom00:12:24

Where "aws" is coming from "pip install awscli"

tbrooke01:12:07

@onetom: I updated some deps and started tweaking boot but I've just started with boot - still have to get more dependencies in target to sync with s3 - may just manually copy them

martinklepsch08:12:09

This may help with s3 deployment: https://github.com/confetti-clj/confetti - bit underdocumsnted still

martinklepsch08:12:29

@onetom: @tbrooke

onetom10:12:54

@martinklepsch: big thanks, will investigate it soon! it was on my roadmap already to look into static site deployment.

martinklepsch10:12:45

@onetom: attempting to cover resource provisioning and syncing with the confetti stuff, please file issues/ask questions

onetom10:12:09

ah, i see, it has quite a wide scope... 😕 we are managing our aws infra via cloudformation json files assembled with coffeescript

onetom10:12:30

so im only interested in the sync part really

martinklepsch10:12:03

well syncing and provisioning are independent bits

martinklepsch10:12:28

point of making the provisioning stuff is that I wanted something automated that encapsulates AWS best practices wrt static site deployment

martinklepsch10:12:45

(confetti also uses cloudformation to achieve this)

martinklepsch10:12:33

see the org (https://github.com/confetti-clj) for the separate stuff. the confetti project packages up those libs as (boot) tasks simple_smile

alandipert12:12:30

@martinklepsch: that looks really cool

martinklepsch13:12:04

@alandipert: happy about any feedback. It's still somewhat alpha-ish (snapshots only)

tbrooke15:12:47

@martinklepsch: Cool - taking a look

micha15:12:24

@martinklepsch: :+1: looks great

onetom16:12:24

martinklepsch: btw, what do u use to construct static sites?

onetom16:12:30

@micha: you mentioned the other day that u have some idea what's wrong w the loop-tpl in hoplon-alpha11 but u haven't said anything more. im wondering if u hit the issue yourself too and what's the plan regarding the fix?

micha16:12:57

yeah i hit it too, i think it's the change that uses the jquery .remove instead of the regular dom .removeChild

micha16:12:45

i think when the element is removed from the dom it's also removing all the event handlers

micha16:12:10

which we don't want to do in loop-tpl because those elements are going to be reinserted into the dom and we don't want to garbage collect them anyway

onetom16:12:26

well, it clearly happened because of that change, because there is not much more diff between alpha10 and 11

micha16:12:26

i'll get a fix this weekend

tbrooke17:12:31

OK Dumb Question - Is my Hoplon site static? In the end it is just javascript, css and html - I seems that once I get a “target” directory and sync that - say to S3 I’m good to go - I just need to be sure to include dependencies - Right? 🤔

micha17:12:51

yes it is