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

Way to change localhost port #36

Closed
MoonlightOwl opened this issue Nov 7, 2016 · 3 comments
Closed

Way to change localhost port #36

MoonlightOwl opened this issue Nov 7, 2016 · 3 comments
Assignees
Labels

Comments

@MoonlightOwl
Copy link

How can I change elm-app start default port value?
(:3000 is already occupied with another service, so I can't run my Elm app.)

@halfzebra
Copy link
Owner

Thanks for the contribution, this is totally a must!

I think it should be possible to specify the port by using -p or --port flag.

Also we need a better error, when port is occupied.

@ropwareJB
Copy link
Contributor

Couldn't get a -p or --port flag to work, and there's no --help to confirm syntax.

After taking a look at halfzebra's commit ce7917749a64f6d211a7d3bdb2ab814ea882a5a7, it looks like the port is controlled by the environment variable PORT.

So, to set the port using bash, you may use PORT=8080 elm-app start

@benkoshy
Copy link
Contributor

benkoshy commented Jan 14, 2019

@montycarlo Thank you Josh that was perfect.

The Answer: To Change Port::

PORT=8000 elm-app start

@halfzebra halfzebra added question and removed feature A feature request labels Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants