Comments (5)
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.
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.
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.
@eliehamouche Did it work? If so, please close this ticket.
from build-a-saas-app-with-flask.
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)
- Illegal instruction: 4 HOT 8
- Several questions for solution evaluation HOT 6
- Revisiting OS X Postgres permissions issue HOT 15
- Internal sever error and db reset issue on Mac HOT 3
- Error importing module add: HOT 12
- Getting blank responses from cat watch HOT 44
- Cannot access admin page HOT 2
- CSRF problem HOT 17
- Adding Custom CSS and JS HOT 9
- SMTPAuthenticationError 534 HOT 4
- Getting a ImportError when running with docker compose HOT 4
- redis need a version bump HOT 3
- gunicorn does not run on windows HOT 2
- ERROR when building HOT 4
- celery-beat KeyError 'Scheduler' HOT 16
- how can i configure postgresql over here can you help me out HOT 1
- ImportError: No module named abc HOT 2
- FLASK_ENV error in build HOT 10
- why not django? HOT 1
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 build-a-saas-app-with-flask.