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

fix: port setting in haul.config.js not used #623

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

zamotany
Copy link
Contributor

@zamotany zamotany commented Aug 7, 2019

@zamotany zamotany requested a review from thymikee August 7, 2019 12:59
@@ -22,7 +21,6 @@ export default function startCommand(runtime: Runtime) {
builder: {
port: {
description: 'Port to run your webpack server',
default: DEFAULT_PORT,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing from here? I guess it's still normalized later, but this feels like a proper place for a default port

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing is if I add it here the port from haul.config.js won't be picked up. Also we use port from the normalised config and there's a fallback to DEFAULT_PORT there as well:

port: env.port || get(projectConfig, 'server.port', DEFAULT_PORT),

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yea that's a fair call

@zamotany zamotany merged commit 3088b0d into master Aug 7, 2019
@zamotany zamotany deleted the fix/port-option-config branch August 7, 2019 14:07
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