Giter VIP home page Giter VIP logo

Comments (5)

nickjj avatar nickjj commented on June 11, 2024

If you're using OSX you're probably running everything through the docker toolbox.

You'll need to use your docker machine IP address instead of localhost in a few places. Goto the config/settings.py file and do a find/replace on localhost to YOUR_DOCKER_MACHINE_IP.

You can find out your docker machine's IP address by running: docker-machine ip default.

In this case the error is likely due to it not being able to find postgres running on localhost.

For getting more informative errors when running CLI commands change this:
https://github.com/nickjj/build-a-saas-app-with-flask/blob/master/cli/cli.py#L37-L44

To remove the try/catch block by changing that to:

    if sys.version_info[0] == 2:
        name = name.encode('ascii', 'replace')
        mod = __import__('cli.commands.cmd_' + name,
                         None, None, ['cli'])

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 11, 2024

Also on a semi-related note, make sure you use named docker volumes instead of using a path in the docker-compose.yml file.

I created a gist the other day to help someone else on OSX. It contains a work flow for my previous comment as well as what I just mentioned above.

Let me know if this works for you:
https://gist.github.com/nickjj/7c3a2a3447a06a1d9a66

from build-a-saas-app-with-flask.

elie-h avatar elie-h commented on June 11, 2024

Ok great it works now! had to replace the local hosts with the IP.

From the notes I followed it said to delete the lines regarding volumes for Mac users.
I'll try that solution out and let you know if I have any issues.

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 11, 2024

@eliehamouche Did it work? If so, please close this ticket.

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 11, 2024

Closing after 2+ weeks of inactivity, it's likely fixed. Please re-open it if it didn't.

from build-a-saas-app-with-flask.

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.