Search code examples
clojurering

Can `lein ring server` command have other params?


I would like to start a server like this:

lein ring server 3000 local
lein ring server 3000 test

where local or test could be read by my app to run with different env. How can I do that?


Solution

  • Your use-case is exactly what Leiningen profiles are for. For example

    lein with-profile test ring server