Fork me on GitHub
#yada
<
2016-10-15
>
pvinis11:10:03

how do i start a webserver with yada in a boot task?

dominicm12:10:30

@pvinis start yada like normal, and return identity at the end. Alternatively check out the way we start the system in edge.

pvinis12:10:56

i checked edge, and i got super confused

pvinis12:10:30

it looks like an advanced app, and i was trying to make a simple ping webserver before i go deeper

pvinis12:10:58

now im trying with lein and aleph, which might (or not) be simpler. i still cant run it.

dominicm12:10:27

You might want to use edge as a base if you're getting started.

dominicm12:10:29

You can clone it, and then start changing it

pvinis12:10:40

even that fails 😞

pvinis12:10:02

i cloned edge, run boot dev and i get java.lang.NumberFormatException: null

dominicm12:10:05

Hmm. Can you do git tag

pvinis12:10:47

you deduce it

dominicm12:10:00

You might need to do git pull -t

dominicm12:10:06

It will pull down the edge tag

pvinis12:10:29

still failing.. hm

dominicm12:10:34

I have a new version of the tag code I wrote for a library that should be more informative

dominicm12:10:54

Do you have the tag now (what is git tag)

dominicm12:10:21

Is the exception the same?

pvinis12:10:45

ok now it works. i downloaded the zip before, and made a git repo with one commit and one tag on it

pvinis12:10:49

and it was not working

pvinis12:10:59

but now i git cloned it, and pull the tags

pvinis12:10:09

and its getting the deps

dominicm12:10:10

Ah. Yes. That would cause that.

pvinis12:10:45

ok now ConnectException Connection refused

dominicm12:10:10

Did you run boot repl instead of dev?

dominicm12:10:43

:) try with dev

pvinis12:10:00

getting deps again

dominicm12:10:16

Yeah, there's a couple extra dev grabs

pvinis12:10:09

compiling cljs

pvinis12:10:12

promising..

pvinis12:10:22

aha. it started

pvinis12:10:44

ok i might start with that. its just already too advanced, and thats why i was trying a more bare example