Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
salmazov opened this issue Dec 7, 2017 · 5 comments
Open

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

salmazov opened this issue Dec 7, 2017 · 5 comments

Comments

@salmazov
Copy link

salmazov commented Dec 7, 2017

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
Copy link
Author

salmazov commented Dec 7, 2017

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 salmazov changed the title lein ring server-headless 6001 doesn't work lein ring server-headless custom-port doesn't works Dec 7, 2017
@weavejester
Copy link
Owner

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

@salmazov
Copy link
Author

salmazov commented Dec 7, 2017

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
Copy link
Owner

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

@salmazov
Copy link
Author

printenv command shows:
PORT=8080
IP=0.0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants