Closed ihinckle closed 5 years ago
Thanks @ihinckle I think webdash should be running even though you get this error Have you tried going to http://localhost:3000 ? This is failing because we're trying to open the url in your browser but that's failing under docker Even though I wrapped it with try catch
Let's see with you first if it's working and then I'll figure out how to fix it or suppress the message or even add a --no-open
flag
unfortunately i get 'localhost didn’t send any data.' when i visit the page.
but if i run webdash on the host os in the exact same folder it will work. id love to look into it myself as well but im just starting my trip down the docker rabbit hole.
ah okay I've never worked with Docker but isn't this about Docker port mapping/forwarding/exposing?
ive double checked the setup for the ports. i can for example host an angular app through that port.
so you're sure it's port 3456 right?
if not, then are you passing -p 8000
for example?
yes, i have verified that all the ports match up and that i am attempting to use webdash through the exposed port. even set up a container with webdash's default port as the exposed port. im thinking that when it breaks it is somehow blocking further processing.
If possible, please try manually commenting out the opn
line (and the try catch) in node_modules/webdash/scripts/index.js
and see if it works (although I doubt it)
you were correct. commenting those out didnt affect it. it seems to be connecting because the error page is saying 'didn't send any data' instead of couldn't be reached.
this instance i set the docker up to use webdash's default port. i can verify the port is being listened to
using docker
docker pull ubuntu
docker run -it -p 3456:3456 ubuntu
apt update
apt install curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash
follow last instructions from nvm to get it added to path in existing terminal
nvm install 8
create a project folder and enter the folder
follow webdash instructions https://webdash.xyz/
okay and you're definitely running node >= 9 right?
Closing for inactivity, feel free to add more information in case it's still an issue
trying to run in a docker container. taking the exact same steps as i did on the host os. encountering error code 3