Comments (4)
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.
please open if you feel that your problem still persists, however this feature already exists
from bentodev.
@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.
@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)
- Is there a way to change the projects root directory? HOT 1
- Missing template filter truncatechars_html
- Create option to override localhost:5000 HOT 1
- Templates render None when a field value is null
- Access backend or template variables page. HOT 2
- Expired Templates Recreate HOT 1
- slugify filter HOT 1
- 'image_url' tag HOT 1
- Can not install bentodev HOT 8
- Pagination
- Upgrading Requests Past 2.13.0 HOT 1
- I cant install bentodev on Windows 10, HOT 1
- Add check for Python2
- Ensure config data is not added to upload HOT 1
- Version Flag Breaking HOT 1
- Key Error on Clone Theme HOT 1
- Templates are cached
- assets/build/ folder gets added to theme repo
- Index page loading slow HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bentodev.