luminus

vnctaing 2020-10-14T06:19:36.024100Z

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 daunting

jumar 2020-10-14T10:00:41.024700Z

Why is the core.clj not right here: https://github.com/vnctaing/tartataing/tree/main/src/clj/tartataing ?

vnctaing 2020-10-15T05:11:15.024900Z

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 !

vnctaing 2020-10-15T05:23:19.025300Z

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)))

vnctaing 2020-10-15T05:23:30.025500Z

Do people use repl-server in production usually ?

vnctaing 2020-10-15T05:23:38.025700Z

to debug live apps ?

jumar 2020-10-15T12:27:33.027500Z

I’d remove it but I use socket repl (enabled via java system property set on command line)