tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 15-Jan-2019 13:24:57 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹

    I'm struggling with #Clojure project setup.

    I'm making a web project with #Ring, #Jetty and all that shit.
    I want to be able to run a REPL and also to be able to reload #Compojure routes if I ever change them.

    If I use `lein-ring` add on, the REPL is shit.
    If I use `lein repl` the Jetty keeps running and i'm unable to reload it.

    Should I use `mount` or something to make it reload with my code?

    UGH!

    In conversation Tuesday, 15-Jan-2019 13:24:57 CET from mastodon.social permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 15-Jan-2019 13:32:20 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • ☆ Dmitri ☭

      Time to appreciate @yogthos 's job with #LuminusFramework that leaves all this things automated and perfectly working.

      In conversation Tuesday, 15-Jan-2019 13:32:20 CET permalink
    • mgdelacroix (mgdelacroix@mastodon.xyz)'s status on Tuesday, 15-Jan-2019 13:57:06 CET mgdelacroix mgdelacroix
      in reply to

      @ekaitz_zarraga in my experience the answer is to use `mount` to manage the reloads and lifecycle. It's been a while since the last time I did something with it, but maybe you can take inspiration from here https://github.com/baoqu/baoqu-core (bear in mind that the deps are a bit outdated, so the API might have changed since then)

      In conversation Tuesday, 15-Jan-2019 13:57:06 CET permalink
      Ekaitz Zárraga 👹 repeated this.
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 15-Jan-2019 14:01:47 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • mgdelacroix

      @mgdelacroix Yeah! looks like what I was trying to do!
      Great! thank you!

      In conversation Tuesday, 15-Jan-2019 14:01:47 CET permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 15-Jan-2019 15:05:34 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • mgdelacroix

      @mgdelacroix For the record:
      Looks like `lein-ring` plugin has more or less this shit attached.

      With :auto-reload? true :auto-refresh? true looks like it works.

      I've put a REPL there too with the :nrepl option...

      In conversation Tuesday, 15-Jan-2019 15:05:34 CET permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.