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

PORT env variable ignored in npm start #3

Open
yatsyk opened this issue May 7, 2018 · 2 comments
Open

PORT env variable ignored in npm start #3

yatsyk opened this issue May 7, 2018 · 2 comments

Comments

@yatsyk
Copy link

yatsyk commented May 7, 2018

Line "start": "micro", in package.json should be changed to"start": "micro -l tcp://0.0.0.0:${PORT-3000}", according to micro docs

@billiegoose
Copy link
Owner

Huh! Well that's odd; I would have thought micro would respect $PORT. That's very annoying that their "solution" is Bash-shell specific. I'd hate to make a change that would potentially break Windows support since I use Windows every day.

Goes and reads through the source code of micro

Oh... I see why they ignore it. They actually support running on multiple ports and allow you to specify combinations of bind address + port and/or sockets. Fancy pants.

Alright, I think I figured out a solution...

@billiegoose
Copy link
Owner

See if v2.0.2 (to be published shortly by our friend Travis) does the trick

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