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 run start not using new compiled files #2680

Closed
alison985 opened this issue Jul 13, 2018 · 4 comments
Closed

npm run start not using new compiled files #2680

alison985 opened this issue Jul 13, 2018 · 4 comments

Comments

@alison985
Copy link
Contributor

alison985 commented Jul 13, 2018

Hi. I originally filed a ticket in the Mozilla fork about this mozilla#410 but we still haven't found a solution. @kocsmy I'd appreciate any thoughts. Do you have any ideas on what else I could try?

cc: @jezdez

@arikfr
Copy link
Member

arikfr commented Jul 14, 2018 via email

@alison985
Copy link
Contributor Author

@arikfr localhost:5000/ which turns to http://0.0.0.0:5000/

@arikfr
Copy link
Member

arikfr commented Jul 16, 2018

npm run start runs webpack-dev-server which serves the frontend code from in memory cache on port 8080 (this is the default). It also proxies API requests to the Flask server.

When you load localhost:5000 you are calling the Flask server, which can't use this cache and loads the frontend code from client/dist. npm run watch will constantly watch for changes in client/app and rebuild the files in client/dist.

Although for frontend development, my recommendation is to use npm start as it also live reloads the browser on changes.

Just to clarify you need to use npm run watch or npm run start - not both.

@arikfr arikfr closed this as completed Jul 16, 2018
@alison985
Copy link
Contributor Author

Thanks!

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

No branches or pull requests

2 participants