Hi I’m new to clj, I want to push a pristine luminus projet to prod, however I’m getting these errors when I run lein uberjar
. I was confused at some error
2020-10-12T02:12:41.936928+00:00 app[web.1]: "Execution error (FileNotFoundException) at clojure.main/main (main.java:40).\nCould not locate <my_repo_name>/core__init.class, <my_repo_name>/core.clj or <my_repo_name>/core.cljc on classpath.\n",
I fixed it in this commit(https://github.com/vnctaing/tartataing/commit/8bd68d5431678031116bedf36214868a9b05cf9f) . It seems like it was because there was no /env/prod/clj/tartataing/core.clj
file.
But now, I’m not sure how to start a server with luminus 😅, the boilerplate in /env/dev/
seems dauntingWhy is the core.clj not right here: https://github.com/vnctaing/tartataing/tree/main/src/clj/tartataing ?
Ah I don’t know I assumed the generated template made only core.clj in env/ for a reason 😅, I’ve copied the file from /env/dev/clj/tartataing/core.clj to src/clj/tartataing and… https://tartataing.herokuapp.com/ tada 😄🎉 thanks for the help !
I see that there is
(mount/defstate ^{:on-reload :noop} repl-server
:start
(when (env :nrepl-port)
(nrepl/start {:bind (env :nrepl-bind)
:port (env :nrepl-port)}))
:stop
(when repl-server
(nrepl/stop repl-server)))
Do people use repl-server in production usually ?
to debug live apps ?
I’d remove it but I use socket repl (enabled via java system property set on command line)