Reputation: 2455
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?
Upvotes: 1
Views: 89
Reputation: 10852
Your use-case is exactly what Leiningen profiles are for. For example
lein with-profile test ring server
Upvotes: 1