tko22 / flask-boilerplate

Simple flask boilerplate with Postgres, Docker, and Heroku/Zeit now
https://github.com/tko22/flask-boilerplate/wiki
MIT License
301 stars 100 forks source link

Questions... #26

Open jasonwhitedev opened 4 years ago

jasonwhitedev commented 4 years ago

Just two quick questions.

Why is line 12 of docker-compose.yml this:

Why is line 58 of api/views/main.py message=f"Successfully created person {new_person.name} with id: {new_person._id}" and not message=f"Successfully created person {new_person.name} with id: {new_person.id}" Is this just a typo? - new_person._id - new_person.id ???

tko22 commented 3 years ago
  1. That's weird that it doesnt work on ubuntu. The syntax for docker compose when linking a volume is docker volume name: folder to mount within docker container". In this casevar/lib/postgresql/data` is where postgres data is stored
  2. a new fix is out for that. It's the same