weavejester / lein-ring

Ring plugin for Leiningen
Eclipse Public License 1.0
501 stars 100 forks source link

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

Open salmazov opened 6 years ago

salmazov commented 6 years ago

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 commented 6 years ago

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

weavejester commented 6 years ago

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

salmazov commented 6 years ago

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.

weavejester commented 6 years ago

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

salmazov commented 6 years ago

printenv command shows: PORT=8080 IP=0.0.0.0