Fork me on GitHub
#hoplon
<
2015-10-30
>
tbrooke03:10:56

I working on deploying a hoplon/castra app - on Openshift - it has Tomcat and Wildfly - the demos have deploy-uberwar but the only task I can find is the prod task that compiles the clojurescript - It seems I need another task to produce an uberwar. Any suggestions?

alandipert03:10:54

@tbrooke: you'll want a combination of the web, uber, and war tasks

alandipert04:10:28

e.g. boot web -s my/app uber -j war

alandipert04:10:26

where my/app is a ring app function

alandipert04:10:20

'web' adds a java thing so you don't need to AOT compile your clojure, uber -j puts dependency jars in the fileset, and war makes a .war of the whole mess

thedavidmeister12:10:28

i have another noob q

thedavidmeister12:10:44

(def test-values (cell (map cell (range 10))))

(print test-values)

(html
  (body
    (loop-tpl :bindings [n test-values]
      (div :text n)
    )
  )
)

thedavidmeister12:10:50

why doesn’t this print 10 divs?

donmullen12:10:21

@thedavidmeister: no need for the cells within cells

thedavidmeister12:10:04

(def test-values (cell (range 10)))

(print test-values)

(html
  (body
    (loop-tpl :bindings [n test-values]
      (div :text n)
    )
  )
)

thedavidmeister12:10:09

still doesn’t show divs for me

donmullen12:10:05

You might need a containing div

thedavidmeister12:10:48

does it have something to do with the loop-tpl

thedavidmeister12:10:01

or that body is a “make-singleton-ctor”?

donmullen12:10:47

No - look at the hoplon code - (head) and (body) are make-singleton-ctor’s - different than other elements like (div).

thedavidmeister12:10:27

seems like it would make sense to start everything with a div

thedavidmeister12:10:30

just inside the body

donmullen12:10:32

np - hoplon is awesome - hope you enjoy ramping up!

micha12:10:57

how's it going?

donmullen12:10:32

Excellent - and you? Lots of goodness coming out of boot land I see! Continues to gain traction.

micha12:10:57

we just launched the permaculture boot version!

micha12:10:56

it used to be that you had to download the binary from time to time when the version changed

micha12:10:01

not anymore lol

micha12:10:36

i'm going to merge martinklepsch's boot-builds-boot branch this morning

thedavidmeister23:10:48

(loop-tpl :bindings [n test-values]
    (input :value n)
    (br))

thedavidmeister23:10:54

does not produce <br /> tags?