26 Dec 2020 |
| @einar:feneas.org left the room. | 21:26:20 |
| @gretel:utwente.io left the room. | 22:47:21 |
27 Dec 2020 |
| @spring:fairydust.space | 17:40:13 |
| @spring:fairydust.space left the room. | 18:31:44 |
28 Dec 2020 |
| @joey:halogen.city | 10:56:03 |
| @joey:halogen.city left the room. | 10:57:21 |
6 Jan 2021 |
| vishal.gautam joined the room. | 16:35:40 |
vishal.gautam | Hello | 16:35:40 |
vishal.gautam | I am try to implement automatic code reloading in my macchiato app. I am following the guestbook tutorial | 16:36:57 |
12 Jan 2021 |
| @donald:hope.net left the room. | 18:03:16 |
16 Feb 2021 |
| @tamara:nltrix.net | 08:12:35 |
| @tamara:nltrix.net removed their display name tamara. | 08:13:45 |
| @tamara:nltrix.net left the room. | 10:59:32 |
19 Aug 2021 |
| @andreas:server.matrix4ulm.de | 19:10:28 |
| @andreas:server.matrix4ulm.de removed their display name andreas. | 19:11:25 |
| @andreas:server.matrix4ulm.de left the room. | 19:22:16 |
25 Sep 2021 |
| doglooksgood joined the room. | 07:46:33 |
doglooksgood | Hi, is there a stop server function in macchiato? | 07:46:33 |
nenadalm | hi. start fn returns server: https://github.com/macchiato-framework/macchiato-core/blob/master/src/macchiato/server.cljs#L35 that you can close using close method: https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_server_close_callback | 12:38:14 |
doglooksgood | I see, the server is the server start with http module. Thank you! | 13:18:05 |
6 Oct 2021 |
| Slack Integration | 08:32:59 |
27 Jan 2022 |
| drewverlee joined the room. | 03:41:53 |
drewverlee | GMEQUCTV if you found a way to implement automic code reloading in the macchiato app i would love to hear it. My theory is that ill be stopping the server then loading the changes, then starting the server. I'm actually not sure i need this to bad sense i don't think my routes will change very often, but it would be nice to have. | 03:41:53 |
nenadalm | I didn't touch my demo app for a while but I believe that reloading routing worked for me.
The way I did it is that on each request I just recreated the router though if debug was on: https://github.com/nenadalm/spa-demo/blob/master/server/src/app/routes.cljs#L138 | 17:23:56 |
nenadalm | maybe it could be also done via mount: https://github.com/tolitius/mount#recompiling-namespaces-with-running-states if the server was it's component. | 17:25:12 |
28 Jan 2022 |
drewverlee | thanks for the follow up. How could you re-create the router if the server was running? wouldn't it complain about the port already being taken? | 01:31:03 |
drewverlee | Or are you just referring to the router, and not the running server process? | 01:31:22 |
nenadalm | > Or are you just referring to the router, and not the running server process?
exactly. by router I meant reitit router. Here it gets created on each request: Or are you just referring to the router, and not the running server process? | 16:27:16 |
29 Jan 2022 |
drewverlee | I guess maybe you don't need to restart the server if you can update the program it's um calling out to? | 04:16:12 |
doglooksgood | How can I extend transit writer for wrap-restful-format, the document is not clear to me.
It asked for {:type .. :opts ...} , where can I find their definitions? | 09:40:26 |