1
votes

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?

1
I'm not really sure why all the downvotes or votes to close. The question is terse, certainly, but it's relatively clear what the OP is trying to achieve.Paul Butcher
@PaulButcher: please edit the question accordingly, then.Markus W Mahlberg
I'm not sure it needs editing. I understand it and have answered it below.Paul Butcher

1 Answers

1
votes

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

lein with-profile test ring server