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

Default to port 3000 while allowing override #148

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Conversation

elia
Copy link
Contributor

@elia elia commented Feb 16, 2023

With this configuration bin/dev will use port 3000, but bin/dev -p 3001 will correctly start the server on port 3001.

@dhh
Copy link
Member

dhh commented Jun 18, 2023

This would overwrite the port ENV set by a Dockerfile, so don't think that works.

With this configuration `bin/dev` will use port 3000,
but `bin/dev -p 3001` will correctly start the server on port 3001.
@elia
Copy link
Contributor Author

elia commented Jun 18, 2023

@dhh updated so it respects a PORT environment variable set from outside

@dhh dhh merged commit a6964f3 into rails:main Jun 20, 2023
@dhh
Copy link
Member

dhh commented Jun 20, 2023

could you do the same on cssbundling-rails? thanks

@elia
Copy link
Contributor Author

elia commented Jun 20, 2023

@dhh sure! Here it is rails/cssbundling-rails#124

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

Successfully merging this pull request may close these issues.

2 participants