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

npm start wants bundle.js on port 3000, while website started on first free port #181

Closed
svdoever opened this issue Jul 2, 2016 · 3 comments

Comments

@svdoever
Copy link

svdoever commented Jul 2, 2016

Node version: 6.2.1

npm version: 3.9.3

Operating system: OSX

Command line used: npm start

Steps to reproduce: npm start seems to do everything, but when site starts up gives error in browser console window **Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/bundle.js, but the site started at port 3004! Seems like link to bundle.js is hard-coded on port 3000, while site starts up on next free port. I had another programming running that took up port 3000...

@coryhouse coryhouse added the bug label Jul 2, 2016
@coryhouse
Copy link
Owner

You can change the port by updating srcServer.js, distServer.js, and webpack.config.dev.js.

I haven't found a way to run at a dynamic port, but would love to see a pull request that handles it.

@coryhouse coryhouse added help wanted and removed bug labels Jul 2, 2016
@svdoever
Copy link
Author

svdoever commented Jul 2, 2016

Hi Cory, no problem... now I know I have to kill other apps taking port 3000. Might be good to take a completely different port i.e. 3918 or something like that, because most apps take port 3000:-)

By the way: my compliments on your course on PluralSight!

@coryhouse
Copy link
Owner

Resolved with 092151e

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

2 participants