Giter Club home page Giter Club logo

Comments (4)

djstein avatar djstein commented on August 28, 2024

In the documentation https://github.com/getbento/bentodev#id8 you can change the host and port. I also believe there may be issues on Windows you may have to use localhost instead of 0.0.0.0. Also port 5000 may have been in use at the time of you starting the program.

from bentodev.

djstein avatar djstein commented on August 28, 2024

please open if you feel that your problem still persists, however this feature already exists

from bentodev.

djstein avatar djstein commented on August 28, 2024

@jimiwhite1020 if I recall you were working on a virtual machine with port forwarding. While I do not know your current machine's status it was working previous (I assume) and thus it is likely that another program is using port 5000 on the Windows side. Would check this? Would also check that your virtual machine's host and port tunnel are correct / or change them. But this is a separate issue from bentodev feature

from bentodev.

jimiwhite1020 avatar jimiwhite1020 commented on August 28, 2024

@djstein
I had created a vagrant box with a private network using a specific IP and It worked fine.

http://<vagrant box static ip>:<port number>

The problem is, when I need to test ssl connection, "https". Can I configure the bentodev, so that it binds https://<host>:<port> as well as http?
(It's necessary to test geolocation. https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only)

If not, I need to use localhost instead, something like http://localhost:5000 that is treated as ssl connection.
So I started using the "forwarded_port", and accessed the vagrant like http://localhost:5000.
Now, do you think the bentodev should bind "localhost"? No, it doesn't work. It should bind the private ip assigned or "0.0.0.0" for any ip.
This is the REAL ISSUE. When I browse http://localhost:5000, the html is loading. But all asset urls are wrong like http://0.0.0.0/... which are not working.

Actually, I have locally edited the environment.py like this. It's working great! 😜

...
LOCAL_URL = 'http://{}:{}/'.format(LOCAL_HOST, LOCAL_PORT)
if 'SERVER_URL' in user_settings:
    LOCAL_URL = user_settings['SERVER_URL']
...

Here is the config.json file:

...
"HOST": "0.0.0.0",
"PORT": "5000",
"SERVER_URL": "http://localhost:5000/"

from bentodev.

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.