Fork me on GitHub
#figwheel-main
<
2021-12-09
>
Noah Bogart14:12:21

opened https://github.com/bhauman/figwheel-main-template/pull/35 to update the base and template gitignore files

Noah Bogart16:12:13

With figwheel original, I would run lein repl to start my server and then in a second terminal tab, I’d run lein figwheel and figwheel wouldn’t try to start any sort of server, it was simply a passthrough of the compiled clojurescript. how do I achieve the same thing with figwheel-main? there’s https://figwheel.org/docs/your_own_server.html, but it’s all about starting the server along with figwheel main in a single command, which doesn’t give me the ability to have a server repl

Noah Bogart16:12:55

Which is to say, “We will create a Ring server and launch it via a script.“, but I don’t want to do that, I want to run the server as a repl by itself and then run figwheel main such that it doesn’t create its own server either

Jan K17:12:21

Figwheel needs to run its own server, I don't think you can avoid that. The server can co-exist with another one in your app. I'm not sure I understand the issue.

Noah Bogart17:12:18

thanks for the reminder to follow-up: the issue is that i was going to the page for the figwheel port instead of the http-kit server’s port, so it wasn’t using the server’s code, just figwheel’s.

Noah Bogart22:12:13

okay, after experimenting with a fresh project, I’m trying to move figwheel into my older (crappier) app, and getting this error:

$ lein fig:build
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Syntax error (ClassNotFoundException) compiling at (ring/adapter/jetty.clj:1:1).
org.eclipse.jetty.util.ssl.KeyStoreScanner

Full report at:
/var/folders/_t/9vwp28193qv_2m0sj0c982m80000gn/T/clojure-9443313280773539384.edn
has anyone seen this before?

Noah Bogart22:12:53

Oh good call, I didn’t see that. I'll try that out