Fork me on GitHub
#luminus
<
2020-10-14
>
vnctaing06:10:36

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

vnctaing05:10:15

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 !

vnctaing05:10:19

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

vnctaing05:10:30

Do people use repl-server in production usually ?

vnctaing05:10:38

to debug live apps ?

jumar12:10:33

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