You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a question...more of a note to others.
I was trying to put this project into a docker container using docker-compose, and I ran into an issue viewing the page in my browser at http://localhost:8080. The browser was getting no response at all at that address. After a little investigation, I found that you need to add:
devServer: {
...
host: "0.0.0.0",
...
}
to webpack.config.js to make the webpack dev server available externally. Hopefully this will save someone else a little headache.
Below are the config files for docker-compose in case anyone is interested. This is set up to put all project code in the ./app directory.
Commands:
Run dev server: docker-compose up
NPM (default command is install): docker-compose -f services.yml run --rm npm [command]
Test: docker-compose -f services.yml run --rm test
Test watch: docker-compose -f services.yml run --rm test --watch
The text was updated successfully, but these errors were encountered:
The app would come up, after the initial npm start, but you could not connect to it without the disableHostCheck. Running docker in a linux VM from the shell.
This is not a question...more of a note to others.
I was trying to put this project into a docker container using docker-compose, and I ran into an issue viewing the page in my browser at http://localhost:8080. The browser was getting no response at all at that address. After a little investigation, I found that you need to add:
to
webpack.config.js
to make the webpack dev server available externally. Hopefully this will save someone else a little headache.Below are the config files for docker-compose in case anyone is interested. This is set up to put all project code in the
./app
directory.docker-compose.yml
services.yml
Commands:
Run dev server:
docker-compose up
NPM (default command is install):
docker-compose -f services.yml run --rm npm [command]
Test:
docker-compose -f services.yml run --rm test
Test watch:
docker-compose -f services.yml run --rm test --watch
The text was updated successfully, but these errors were encountered: