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?
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?
Your use-case is exactly what Leiningen profiles are for. For example
lein with-profile test ring server