This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-06
Channels
- # admin-announcements (6)
- # beginners (147)
- # boot (9)
- # braveandtrue (5)
- # cider (11)
- # cljsjs (1)
- # cljsrn (4)
- # clojure (82)
- # clojure-greece (9)
- # clojure-poland (9)
- # clojure-russia (288)
- # clojure-taiwan (2)
- # clojure-uk (73)
- # clojurescript (123)
- # consulting (3)
- # cursive (26)
- # datascript (4)
- # datomic (32)
- # dirac (56)
- # emacs (11)
- # flambo (2)
- # hoplon (425)
- # jobs-rus (1)
- # lein-figwheel (3)
- # leiningen (16)
- # luminus (42)
- # mount (7)
- # om (1)
- # om-next (2)
- # onyx (8)
- # other-languages (146)
- # quil (3)
- # re-frame (17)
- # reagent (6)
- # spacemacs (2)
- # uncomplicate (8)
- # untangled (71)
- # vim (2)
- # yada (49)
What is this :join?
value for?
https://github.com/untangled-web/untangled-server/blob/master/src%2Funtangled%2Fserver%2Fimpl%2Fcomponents%2Fweb_server.clj#L15
I don't see it in the http-kit docs. http://www.http-kit.org/server.html
@currentoor: might be a vestige from a different server...Jetty?
yeah looks like it
hey while you're here
im about to push up a PR
but i was thinking do you want to have a :server
section in the config.edn?
like :datomic
or just have all the http-kit fields at the root like port
these fields `[:ip :port :thread :worker-name-prefix :queue-size :max-body :max-line]`
oh right ok at the root then
just like port
do you have any requirements on commits?
also, it might be nice to validate things and give decent error messages...even better: info logging messages when they are overridden so ppl can see them being set at startup
I did not touch the defaults, but I'd be happy to set them at whatever you prefer.
I'm logging the options that ultimately get passed to http-kit. Is that sufficient?
Maybe it makes sense to set them at the same defaults as nginx?
hmm lein checkouts doesn’t appear to work for clojurescript projects, @ethangracer any suggestions here?
@currentoor: I’ve used lein checkouts in clojurescript a bunch, not sure what issue you’re running into. The way I’ve done it most recently is by making a new cookbook project, and then putting a checkouts/
directory in the same directory as the project file. Then I’ll set the untangled-client version in the project file to the latest snapshot, and run lein deps
so there’s a copy of the snapshot in ~/.m2
. The last step is to create a symbolic link in the directory to the directory with the untangled-client project file.
there does have to be a copy the snapshot that you want to checkout in your local .m2, even though leiningen won’t actually use it
lein jar
lein pom
lein localrepo install -p pom.xml target/project_name-version.jar project_name version
^^^ you can run this from the untangled-client repo to make and install the dependency directly from the source code if the latest snapshot isn’t on clojars
@currentoor: You also need to make sure that the checkout src dirs are in your src path for cljs builds. ie :source-paths [“checkouts/untangled-client/src” …]
@ethangracer, @mahinshaw: thanks, i’ll try these later today, also this was a little non-obvious to me, should we document this somewhere?
an contribution section in the wiki perhaps?
we could put something about publishing to a local repo for sure, can’t hurt
Yeah, I think that’s a good idea. @ethangracer Do you have a preference on the repo for generic docs, because this isn’t specific to one project
@currentoor: is there anything I described about checkouts you didn’t see in the leiningen tutorial doc? I know mark’s piece isn’t in the leiningen doc
@mahinshaw: maybe a docs folder in the untangled project?
we should probably check in with tony
We also need to note that when doing clj/server stuff that there checkout source needs to be in the (set-refresh-dirs …)
else they will not reload.
the lein docs only told me to make the symlink (which worked for untangled-server) but not any of the other stuff you two mentioned
and you can add any other stuff to the contribution docs as well, like squashed commits and link to issue(s)
@ethangracer: Tony is in a meeting. We can ping him about it in a bit.
you guys were plenty helpful but as a boot user i had no idea about any of this
yeah, it’s definitely finicky
also i doubt most average lein users even know about this, but i could be wrong
@mahinshaw: oh yeah works like a charm
it would be sweet to have a tutorial on how to set up with boot
I need to do a simple app with that some time. I really liked using it for pet projects last year
for those users who prefer it
@ethangracer: do want me add a cookbook? we’ve built our app using boot and untangled already
using untangled-{web server datomic}
sounds like you know the most about it, that’d be great
@currentoor: Did you try the boot checkouts task?
wrt publishing a local version i wrote this:
#!/bin/bash
set -e -u
# Created publish-local script that publish the repo to your ~/.m2/repository
# using your projects name and current version
# It assumes that you are:
# - in the same directory as the project.clj
# - the project name and version string are on the first line
project_name=$(head -n 1 project.clj | cut -d' ' -f2)
simple_project_name=$(echo $project_name | sed 's/.*\///')
version=$(head -n 1 project.clj | cut -d' ' -f3 | sed 's/"//g')
lein jar
lein pom
lein localrepo install -p pom.xml \
target/${simple_project_name}-${version}.jar \
${project_name} ${version}
i’ve tended to use that script more often then checkouts, but (checkouts) still comes in handy that I want to write (or fix) a link-checkouts
script
@mahinshaw: yeah i’ve checkedout that task (see what i did there 😄)
i was about to use it but then we just added an example project within the lib so i just used that
@adambros: pretty nifty
@currentoor: I'm totally game for a CONTRIBUTING.md file in untangled (the top-level project that has the website in it)