lein-ring icon indicating copy to clipboard operation
lein-ring copied to clipboard

lein ring server-headless custom-port doesn't works

Open salmazov opened this issue 7 years ago • 5 comments

My problem is when I start lein ring server using this command It starts at 8080.

What I shoud do?

I use lein ring in c9.io

salmazov avatar Dec 07 '17 11:12 salmazov

This is bug.

If I use this version - all works. :ring {:handler hashers-example.core/app :port 6001} :plugins [[lein-ring "0.8.13"]]

If I use last version of lein ring - doesn't work

Please check

salmazov avatar Dec 07 '17 12:12 salmazov

I can't reproduce this error. Is it possible that you have a PORT environment variable set? That currently overrides the command line.

weavejester avatar Dec 07 '17 12:12 weavejester

I use c9.io environment. And with 0.8.13 c9.io works correctly, but with latest version of lein ring doesn't work. MB this is bug with c9 or PORT variable, I don't know.

salmazov avatar Dec 07 '17 16:12 salmazov

Have you tried changing the PORT variable, or checking its value?

weavejester avatar Dec 07 '17 17:12 weavejester

printenv command shows: PORT=8080 IP=0.0.0.0

salmazov avatar Dec 14 '17 07:12 salmazov