user2219372
user2219372

Reputation: 2455

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?

Upvotes: 1

Views: 89

Answers (1)

Paul Butcher
Paul Butcher

Reputation: 10852

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

lein with-profile test ring server

Upvotes: 1

Related Questions