Fork me on GitHub
#luminus
<
2016-12-10
>
curlyfry00:12:19

@yogthos So change for example start to (mount/start-without #'my-ns.core/repl-server #'my-ns.core/http-server)?

yogthos00:12:41

Yup that should do it

curlyfry00:12:15

Ok, but then I have to start the http-server manually, right?

curlyfry00:12:27

I'm still not quite sure I understand why the error occurred in the first place, either

yogthos00:12:02

Yeah you would, but that shouldn't be needed very often

yogthos00:12:27

the annotation makes mount ignore reloading, so the server var isn't being refreshed

yogthos00:12:08

In most cases you don't want the server restarting, so that's why that's there by default

curlyfry09:12:02

@yogthos Thanks! Do you think this should be changed in the template?

curlyfry09:12:24

@yogthos Truly sorry for the question spam, but I couldn't find this in the documentation: How do I get my app to recognize a hugsql query I added? Using (restart) doesn't seem to help, and restarting the REPL seems to go against the workflow.

curlyfry10:12:59

I found the answer... (conman/bind-connection *db* "sql/queries.sql") in db.core

curlyfry10:12:46

Is there a reason why this isn't part of :start in the db defstate?

yogthos14:12:08

@curlyfry yeah I updated the template, so next time I do a release that will be the default

yogthos14:12:05

hmm I suppose it could be, I tend to not restart that often in my workflow

yogthos14:12:35

I use the repl from the editor, so whenever I change something like adding a db query, I just rerun bind-connection from the REPL

curlyfry15:12:14

@yogthos Thanks again for the help! The template is really great :)

yogthos15:12:32

no prob, and glad to hear it 🙂

yogthos16:12:01

and now I remember why bind-connection needs to be declared outside defstate. The functions generated by it have to be available at compile time