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

Suggest another port when 3000 is busy #243

Merged
merged 1 commit into from
Jul 27, 2016
Merged

Suggest another port when 3000 is busy #243

merged 1 commit into from
Jul 27, 2016

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jul 27, 2016

I’m taking #101 and adding some minor refactoring on top.
I will merge without squashing so original author commits are preserved.

@gaearon
Copy link
Contributor Author

gaearon commented Jul 27, 2016

(I will probably squash first several commits though)

@chocnut
Copy link
Contributor

chocnut commented Jul 27, 2016

@gaearon afaik with #101 the e2e failed because it can't find the newly created utilities/prompt.js wonder why tho haven't check. just get back today. seems like you're changing it already so I'll hold any commit now. thanks!

@ghost ghost added the CLA Signed label Jul 27, 2016
@gaearon
Copy link
Contributor Author

gaearon commented Jul 27, 2016

@chocnut Thanks, this is really good for now! I think it was failing because of regex replacement of any numbers in entry points—which happened to replace parts of test directory paths on CI 😄 . I’m currently looking into another approach to this. I made webpack configs parameterizable, but to be honest, I want to find a way to get rid of port/host in configs completely if possible.

@ghost ghost added the CLA Signed label Jul 27, 2016
@@ -16,7 +16,7 @@ var paths = require('./paths');
module.exports = {
devtool: 'eval',
entry: [
require.resolve('webpack-dev-server/client') + '?http://localhost:3000',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha seriously. This also fixes #194 in my testing.
I think this was only necessary because contentBase is configurable in Webpack.. which it isn’t here.

@gaearon gaearon merged commit 2edf218 into master Jul 27, 2016
@gaearon gaearon deleted the port branch July 27, 2016 20:23
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants