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

Unable to access the react-node js app on localhost:3000 #41

Closed
dhruvinparikh opened this issue Dec 28, 2019 · 8 comments
Closed

Unable to access the react-node js app on localhost:3000 #41

dhruvinparikh opened this issue Dec 28, 2019 · 8 comments

Comments

@dhruvinparikh
Copy link

Hi,

I am following this tutorial for setting up jenkins build server locally. I was able to to set it locally.

The issue I am facing is jenkins is available on localhost:8080 but unable to get the deliver stage's app up on localhost:3000 as mentioned in jenkins/scripts/deliver.sh

@roeniss
Copy link

roeniss commented Dec 30, 2019

same here. after committing the "deliver" stage, as predicted, the following screen was up, but couldn't access localhost:3000.
image

@AMcCartneyK3
Copy link

I had the same issue. Changing from npm to yarn to launch the app solved things for me.

@kishoreprabhu
Copy link

I tried with yarn and npm but still, I couldn't able to access it.

@smparvez89
Copy link

I couldn't access localhost:3000

@dhruvinparikh
Copy link
Author

UPDATE : updating the Jenkins file to use latest node image solved the issue.

@WilliamWishart
Copy link

Could you post that update Jenkinsfile to highlight the actual change that you made?

@WilliamWishart
Copy link

What I had to do was actually expose the port, from the jenkins instance of docker, that would be used to expose the published react app.

docker run --name jenkins-docker --rm --detach
--privileged --network jenkins --network-alias docker
--env DOCKER_TLS_CERTDIR=/certs
--volume jenkins-docker-certs:/certs/client
--volume jenkins-data:/var/jenkins_home
--publish 2376:2376 --publish 3000:3000
docker:dind

@drewawa98
Copy link

What I had to do was actually expose the port, from the jenkins instance of docker, that would be used to expose the published react app.

docker run --name jenkins-docker --rm --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home --publish 2376:2376 --publish 3000:3000 docker:dind

Worked for me. Thanks alot!

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

7 participants