Coder Social home page Coder Social logo

Comments (2)

tiangolo avatar tiangolo commented on July 28, 2024

I see.

In that case, your VirtualBox machine will have a specific IP address, it will be different than 127.0.0.1, which is the one for localhost, which is also used under the hood by Docker-for-Mac's VM (virtual machine).

If you set it up with Docker Toolbox (which uses VirtualBox), the default IP address will be 192.168.99.100. If that's the case, you can use http://dockertoolbox.tiangolo.com or any subdomain of that.

If the IP address of your VirtualBox VM is different, let's say it's 192.168.1.5, then you have to update your /etc/hosts file and put a section with your VM's IP, e.g.:

192.168.1.5    dev.my-super-app.com

from full-stack-flask-couchbase.

valentierra avatar valentierra commented on July 28, 2024

Thanks for the advice Tiangolo!

Problem solved! It was a 100% a fault from my part.

It was caused by a sync feature of my browser. I recently changed to Vivaldi, which BTW is quite fast and configurable, and used the same Vivaldi user with dev sessions on different machines. That caused a mess with authorization tokens, despite of having made a brand-new installation of the Full-Stack-Flask-Couchbase.

The moral of the fable:
1 - Don't use browser sync features from different dev machines sessions.
2 - Have just one development environment for each purpose.

And so, I am using Full-Stack only through a development VirtualBox machine running Ubuntu and leave the macOS to deal with other development tools and environments.

It was as simple as added the address 0.0.0.0 related to dev.mydomain.com into the Ubuntu's dev machine /etc/hosts file.

To figure out which IPs are exposed by each VM (dev and server machines) I used the ifconfig | grep "inet" command and then connected each VM by ssh to be sure which IP works. Knowing the IPs, now is time to configure the docker swarm.

I figure I can connect my dev. machine from the macOS browser by exposing Ubuntu's dev machine IP and adding that IP to the macOS etc/hosts file. As both are in the same Mac, It is not necessary but it can be fun to know it is possible that way.

from full-stack-flask-couchbase.

Related Issues (3)

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.