Git Product home page Git Product logo

Comments (4)

dante0747 avatar dante0747 commented on May 14, 2024 2

Hi. I know it's too late to respond. I'm just writing here for those who have faced the same issue.

You should change the following environment variables in docker-compose.yml:

REACT_APP_MOCKIT_SERVER_URL=http://localhost:3000
REACT_APP_MOCKIT_API_URL=http://localhost:4000

from mockit.

rayjaymor85 avatar rayjaymor85 commented on May 14, 2024 1

I know this post is 2 years old but I came across this exact same issue.

The advice from @dante0747 does in fact work - just replace "localhost" on these lines with your IP address if you're hosting on a lab or remote service. In my case the ip address of my docker server worked just fine (so if you access mockit on http://10.1.1.128:5000 then set these lines to:

REACT_APP_MOCKIT_SERVER_URL=http://10.1.1.128:3000
REACT_APP_MOCKIT_API_URL=http://10.1.1.128:4000

from mockit.

ONEUM avatar ONEUM commented on May 14, 2024

Hi there, I can confirm that this issue is still present if deployed via cloned docker-compose on host A and accessed from host B.
The page gets loaded but if you try to edit existing or add new route the dialog in modal window does not close and stays permanent and nothing happens afterwards. Only thing one can do is close the modal.

from mockit.

ONEUM avatar ONEUM commented on May 14, 2024

Hi. I know it's too late to respond. I'm just writing here for those who have faced the same issue.

You should change the following environment variables in docker-compose.yml:

REACT_APP_MOCKIT_SERVER_URL=http://localhost:3000
REACT_APP_MOCKIT_API_URL=http://localhost:4000

this env vars setting is already set this way and it is not working, any hint?

from mockit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.