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

serve --port default to $PORT? #1126

Closed
jamiebuilds opened this issue Apr 2, 2018 · 3 comments
Closed

serve --port default to $PORT? #1126

jamiebuilds opened this issue Apr 2, 2018 · 3 comments

Comments

@jamiebuilds
Copy link
Member

$PORT is a really common environment variable for specifying the port to use for web servers.

We may want to consider defaulting to the value of process.env.PORT || 1234

const server = await bundler.serve(command.port || 1234, command.https);

@DeMoorJasper DeMoorJasper added the 💬 RFC Request For Comments label Apr 2, 2018
@ilkerceng
Copy link

Hi @jamiebuilds
I am getting this error when i try to deploy on heroku:

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch.

Is it related with that issue? I couldn't fix it.

@lizzzp1
Copy link

lizzzp1 commented Jan 20, 2019

Could I take this issue?

@lizzzp1 lizzzp1 mentioned this issue Jan 20, 2019
3 tasks
@foxt
Copy link

foxt commented Feb 9, 2024

$PORT is a really common environment variable for specifying the port to use for web servers.

Yes, it infact is - and you get very confused why parcel keeps trying to steal the $PORT you set for your application server 🙈

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

No branches or pull requests

7 participants
@devongovett @jamiebuilds @DeMoorJasper @ilkerceng @lizzzp1 @foxt and others